Hi, I've been trying to get haddock to work, and have successfully produced some html files using: haddock -h Module.hs -o docs However, the files seem to contain no useful information at all, even if I comment the modules as so: --| Its a fucking module module MyModule where {-| The 'square' function squares an integer. It takes one argument, of type 'Int'. -} square :: Int -> Int square x = x * x (the square example taken from the haddock documentation). And still I get no more documentation than: Contents Index MyModule Synopsis Produced by Haddock version 0.6 What on earth is it trying to do? Bob
T.A.T.Davie wrote:
Hi, I've been trying to get haddock to work, and have successfully produced
However, the files seem to contain no useful information at all, even if I comment the modules as so: --| Its a fucking module module MyModule where
As a gentlemen's tool, Haddock might have been offended by your artistic depiction of improper virtues within the enlightning pureness of Haskell ;-) On the other hand, it could also be that Haddock expects a space between the comment sign and the bar: -- | This is a proper haddock comment Cheers, -- Daan Leijen.
{-| The 'square' function squares an integer. It takes one argument, of type 'Int'. -} square :: Int -> Int square x = x * x
(the square example taken from the haddock documentation). And still I get no more documentation than: Contents Index MyModule Synopsis Produced by Haddock version 0.6
What on earth is it trying to do?
Bob _______________________________________________ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
participants (2)
-
Daan Leijen -
T.A.T.Davie