haddock --version (return code: 0)
Haddock version 2.17.3, (c) Simon Marlow 2006
Ported to use the GHC API by David Waern 2006-2008
haddock --help (return code: 0)
Usage: haddock [OPTION...] file...
-B DIR path to a GHC lib dir, to override the default path
-o DIR --odir=DIR directory in which to put the output files
-l DIR --lib=DIR location of Haddock's auxiliary files
-i FILE --read-interface=FILE read an interface from FILE
-D FILE --dump-interface=FILE write the resulting interface to FILE
-h --html output in HTML (XHTML 1.0)
--latex use experimental LaTeX rendering
--latex-style=FILE provide your own LaTeX style in FILE
--mathjax=URL URL FOR mathjax
-U --use-unicode use Unicode in HTML output
--hoogle output for Hoogle; you may want --package-name and --package-version too
--hyperlinked-source generate highlighted and hyperlinked source code (for use with --html)
--source-css=FILE use custom CSS file instead of default one in hyperlinked source
--source-base=URL URL for a source code link on the contents
and index pages
-s URL --source-module=URL URL for a source code link for each module
(using the %{FILE} or %{MODULE} vars)
--source-entity=URL URL for a source code link for each entity
(using the %{FILE}, %{MODULE}, %{NAME},
%{KIND} or %{LINE} vars)
--source-entity-line=URL URL for a source code link for each entity.
Used if name links are unavailable, eg. for TH splices.
--comments-base=URL URL for a comments link on the contents
and index pages
--comments-module=URL URL for a comments link for each module
(using the %{MODULE} var)
--comments-entity=URL URL for a comments link for each entity
(using the %{FILE}, %{MODULE}, %{NAME},
%{KIND} or %{LINE} vars)
-c PATH --css=PATH, --theme=PATH the CSS file or theme directory to use for HTML output
--built-in-themes include all the built-in haddock themes
-p FILE --prologue=FILE file containing prologue text
-t TITLE --title=TITLE page heading
-q QUAL --qual=QUAL qualification of names, one of
'none' (default), 'full', 'local'
'relative' or 'aliased'
-? --help display this help and exit
-V --version output version information and exit
--compatible-interface-versions output compatible interface file versions and exit
--interface-version output interface file version and exit
-v VERBOSITY --verbosity=VERBOSITY set verbosity level
--use-contents=URL use a separately-generated HTML contents page
--gen-contents generate an HTML contents from specified
interfaces
--use-index=URL use a separately-generated HTML index
--gen-index generate an HTML index from specified
interfaces
--ignore-all-exports behave as if all modules have the
ignore-exports atribute
--hide=MODULE behave as if MODULE has the hide attribute
--show-extensions=MODULE behave as if MODULE has the show-extensions attribute
--optghc=OPTION option to be forwarded to GHC
--ghc-version output GHC version in numeric format
--print-ghc-path output path to GHC binary
--print-ghc-libdir output GHC lib dir
-w --no-warnings turn off all warnings
--no-tmp-comp-dir do not re-direct compilation output to a temporary directory
--pretty-html generate html with newlines and indenting (for use with --html)
--no-print-missing-docs don't print information about any undocumented entities
--package-name=NAME name of the package being documented
--package-version=VERSION version of the package being documented in usual x.y.z.w format