How do you build documentation for your project?

What tool do you use to manage your project: cabal, stack, nix…?

Can you generate local documentation with ability to search it (Hoogle) whether it is executable, library or both including all dependencies?

3 Likes

I use cabal, and last time I wanted to generate a local Hoogle database, I used GitHub - kokobd/cabal-hoogle. Maybe @LaurentRDC can speak more about it?

4 Likes

Yes I used cabal-hoogle for a while! Not since changing jobs unfortunately, but that is no fault of cabal-hoogle.

We had a nightly job to generate a Hoogle database in GitHub Actions, because cabal-hoogle generate can take some time

2 Likes

There is the stack hoogle command:

It requires hoogle on the PATH.

There are, however, some wrinkles due to Haddock and GHC bugs:

I should return to that pull request; it disappeared from my own radar.