[Haskell-cafe] Haddock doesn't work -- with Haddock

Stefan O'Rear stefanor at cox.net
Fri Jul 6 21:22:57 EDT 2007


On Sat, Jul 07, 2007 at 09:11:55AM +0800, Michael T. Richter wrote:
> I've been wrestling the last few days with putting Haddock documentation
> into my code.  After a dead-simple library failed to generate anything
> meaningful, I gave up, turfed my copy of Haddock and downloaded the
> latest from the web site.  (Haddock 0.8, it seems.)
> 
> 
>         runhaskell Setup.lhs configure
>         runhaskell Setup.lhs build
>         runhaskell Setup.lhs install
> 
> 
> These three worked fine and I verified with "which haddock" that the
> right executable is being run.  Then I typed "runhaskell Setup.lhs
> haddock" and got this:
> 
> 
>         michael at isolde:~/Development/haddock-0.8$ runhaskell Setup.lhs
>         install
>         Installing: /home/michael/software/lib/haddock-0.8/ghc-6.6.1
>         & /home/michael/software/bin haddock-0.8...
>         michael at isolde:~/Development/haddock-0.8$ which haddock
>         /home/michael/software/bin/haddock
>         michael at isolde:~/Development/haddock-0.8$ runhaskell Setup.lhs
>         haddock
>         Preprocessing executables for haddock-0.8...
>         Running Haddock for haddock-0.8...
>         Warning: cannot use package haddock-0.8:
>            ghc-pkg failed
>         Warning: cannot use package base-2.1.1:
>         
>         interface /home/michael/software/share/ghc-6.6.1/html/libraries/base/base.haddock does not exist.
>         Warning: cannot use package haskell98-1.0:
>            HTML
>         directory /home/michael/software/share/ghc-6.6.1/html/libraries/haskell98 does not exist.
>         dist/build/tmp/src/Main.hs:"dist/build/tmp/src/Main.hs": 39:1:
>         Parse error
>         michael at isolde:~/Development/haddock-0.8$ 
> 
> 
> This is exactly the same problem I had running Haddock on my own
> project.  What's the next step from here?

You've just ran into Cabal bug #14, or maybe #102.

http://hackage.haskell.org/trac/hackage/ticket/14
http://hackage.haskell.org/trac/hackage/ticket/102

Stefan


More information about the Haskell-Cafe mailing list