It is influenced by
IDoc,
HDoc, and
Doxygen. It produces
hyperlinked
HTML files from annotated Haskell (the documentation is embedded in
comments)
source files, with additional information extracted from
type annotations; it supports only partially generating documentation in
SGML. Haddock is contained in the
Haskell Platform. It is used by the GHC, Gtk2Hs and HTk projects, as well as
xmonad. Here is an example of Haddock markup: -- | This is the documentation for 'square', which -- uses the (*) operator from "Prelude". -- It multiplies the @x@ argument against itself. square :: Integer -> Integer square x = x*x ==References==