I'm using GHC and have installed several packages via Cabal. One of the packages' web site says "go see the haddock documentation". The haddock
command seems to only work on source files, and cabal haddock
only seems to work in the top-level directory of a project with a .cabal
build file. Is there a way to say "show me the haddock" for a module?
I'm longing for pydoc -p 12345
which starts an HTTP server providing Python documentation based on what you have installed locally.
As a work-around, I extracted the source tarball from under ~/.cabal
and ran cabal configure; cabal haddock
in the source directory, but that's kind of a pain.