[Haskell] cabal/haddock

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Thu Oct 19 07:55:14 EDT 2006

On Thu, 2006-10-19 at 12:18 +0200, Johannes Waldmann wrote:
> Hello. What's the current state of Haddock support in Cabal?
> I checked that "runhaskell Setup.hs haddock" works fine,
> but how can I reference the documentation of (cabalized)
> package Y from the docs of package X? - Last I asked this,
> the answer was "write your hooks in Setup.hs" but I was hoping
> that meanwhile I could just put the info in the .cabal file.

This should just work. Cabal invokes haddock with --use-package=Y and
then haddock use ghc-pkg to look up where Y's .haddock file and html
files are.


More information about the Haskell mailing list