[Haskell] Using Haddock

T.A.T.Davie tatd2 at kent.ac.uk
Fri May 13 20:14:39 EDT 2005


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


More information about the Haskell mailing list