Generating Standalone Haddock Docs for a Multi-package Haskell Project

Generating Standalone Haddock Docs for a Multi-package Haskell Project

7 Likes

Man, it’d be really nice if this would just work out of the box :thinking:

Do you happen to have the documentation you generated hosted somewhere? I’d love to take a look at it :smiley:

Note that the haddock-package support in cabal 3.10.1.0 does a version of this – handling documentation across a multi-package haskell project all at once. https://github.com/haskell/cabal/blob/master/release-notes/cabal-install-3.10.1.0.md#significant-changes

What I understand from the blog post is that what it does not do is prefer local links for other packages within the project, but remote links for the packages not in the project, which the script in the post enables.

1 Like

I uploaded it on Github pages. It is exactly like the docs and hyperlinked source code of libraries on Hackage, except links to other package of my project point to Github pages hosted ones.