Ok, With your example I realized that I don't write the type signature
declaration of anything. Without the type Haddock don't put the
comments from code in the generated doc. Now it works.

Thanks. Luis

On 11/26/06, Donald Bruce Stewart <[EMAIL PROTECTED]> wrote:
It appears to be an error in current haddock when interacting with ghc
6.6.

If you use haddock 0.8, the error message is there, but the
documentation is still generated, so should be ok:

    $ runhaskell Setup.lhs haddock
    Preprocessing executables for haq-0.0...
    Running Haddock for haq-0.0...
    Warning: cannot use package haq-0.0:
       ghc-pkg failed
    Warning: cannot use package base-2.0:
       HTML directory /home/dons/share/ghc-6.6/html/libraries/base does not 
exist.
    Warning: Main: the following names could not be resolved:
        IO

    $ w3m -dump dist/doc/html/haq/Main.html
     haq Contents Index
    Main
    Synopsis
    main :: IO ()
    Documentation
    main :: IO ()
    main runs the main program
    Produced by Haddock version 0.8

So grab haddock 0.8 and try that.

    http://haskell.org/haddock/#Download

-- Don

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to