There is no documentation on hackage! What do I do?

If you are a Haskell user you for sure know and use Haskell open source repository, Hackage. Hackage is not only useful as a software repository, but as a handy way of checking documentation. Reading signatures, comments, etc. is the primary way to approach and study a library.

Sometimes the Hackage server fails (or lags behind in) building documentation (example). Being confronted by black links can be frustrating, but what can we do?

The recipe

The fix is simple, instead or relying on a third party to build your documentation, build it locally.

Now you can type ghdoc in your terminal and -bam!-, here you have all the documentation at your fingertips, quickly loaded, matching your installed packages, working even when you are offline!

image

No more Hackage blues.

Sandboxex/Stack/Hoogle