Context: Before stack I stopped using hoogle locally because my index would somehow lose sync with installed packages. If I recall correctly, I had issues with different results in ghci, command line and cabal sandboxes.
Can I leverage stack environment manage my local hoogle databases?
For the Hoogle part I recommend using the latest git version, which will become version 5. To install that, do:
Then generate it and use it with:
To make this work with Cabal instead of Stack, do
cabal installinitially, set yourhaddock/hooglepreference in your Cabal config file toTrue, and remove thestack execbits.