For the Hoogle part, I recommend using the latest version of git, which will become version 5. To install this, run:
git clone https://github.com/ndmitchell/hoogle.git cd hoogle stack init stack install
Then generate it and use it with:
# generate Haddock docs for all your packages stack haddock
To do this with Cabal instead of Stack, first run cabal install , set the haddock / hoogle in the Cabal configuration file to True and remove the stack exec bit.
source share