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:


        [EMAIL PROTECTED]:~/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...
        [EMAIL PROTECTED]:~/Development/haddock-0.8$ which haddock
        /home/michael/software/bin/haddock
        [EMAIL PROTECTED]:~/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
        [EMAIL PROTECTED]:~/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?

-- 
Michael T. Richter <[EMAIL PROTECTED]> (GoogleTalk:
[EMAIL PROTECTED])
A well-designed and humane interface does not need to be split into
beginner and expert subsystems. (Jef Raskin)

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to