9189b38
.TH HADDOCK 1 "July 2010" "Haddock, version 2.6.1" "Haddock documentation generator"
9189b38
9189b38
9189b38
.SH NAME
9189b38
haddock \- documentation tool for annotated Haskell source code
9189b38
9189b38
9189b38
.SH SYNOPSIS
9189b38
.B haddock
9189b38
.RI [ options ] " file" ...
9189b38
9189b38
9189b38
.SH DESCRIPTION
9189b38
This manual page documents briefly the
9189b38
.B haddock
9189b38
command.
9189b38
Extensive documentation is available in various other formats including DVI,
9189b38
PostScript and HTML; see below.
9189b38
9189b38
.PP
9189b38
.I file
9189b38
is a filename containing a Haskell source module.
9189b38
All the modules specified on the command line will be processed together.
9189b38
When one module refers to an entity in another module being processed, the
9189b38
documentation will link directly to that entity.
9189b38
9189b38
Entities that cannot be found, for example because they are in a module that
9189b38
is not being processed as part of the current batch, simply will not be
9189b38
hyperlinked in the generated documentation.
9189b38
.B haddock
9189b38
will emit warnings listing all the identifiers it could not resolve.
9189b38
9189b38
The modules should not be mutually recursive, as
9189b38
.B haddock
9189b38
does not like swimming in circles.
9189b38
9189b38
9189b38
.SH OPTIONS
9189b38
The programs follow the usual GNU command line syntax, with long
9189b38
options starting with two dashes (`--').
9189b38
A summary of options is included below.
9189b38
For a complete description, see the other documentation.
9189b38
9189b38
.TP
9189b38
\fB\-o \fIDIR\fP, \-\-odir=\fIDIR\fP
9189b38
directory in which to put the output files
9189b38
9189b38
.TP
9189b38
\fB\-i \fIFILE\fP, \-\-read-interface=\fIFILE\fP
9189b38
read an interface from 
9189b38
.IR FILE .
9189b38
9189b38
.TP
9189b38
\fB\-D \fIFILE\fP, \-\-dump\-interface=\fIFILE\fP
9189b38
dump an interface for these modules in  
9189b38
.IR FILE .
9189b38
9189b38
.TP
9189b38
\fB\-l \fIDIR\fP, \-\-lib=\fIDIR\fP
9189b38
location of Haddock's auxiliary files
9189b38
9189b38
.TP
9189b38
.BR \-h ", " \-\-html
9189b38
Generate documentation in HTML format.
9189b38
Several files will be generated into the current directory (or the specified
9189b38
directory if the 
9189b38
.B \-o
9189b38
option is given), including the following:
9189b38
.RS
9189b38
.TP
9189b38
.I index.html
9189b38
The top level page of the documentation:
9189b38
lists the modules available, using indentation to represent the hierarchy if
9189b38
the modules are hierarchical.
9189b38
.TP
9189b38
.I haddock.css
9189b38
The stylesheet used by the generated HTML.
9189b38
Feel free to modify this to change the colors or layout, or even specify
9189b38
your own stylesheet using the
9189b38
.B \-\-css
9189b38
option.
9189b38
.TP
9189b38
.I module.html
9189b38
An HTML page for each module.
9189b38
.TP
9189b38
.IR doc-index.html ", " doc-index-XX.html
9189b38
The index, split into two (functions/constructors and types/classes, as per
9189b38
Haskell namespaces) and further split alphabetically.
9189b38
.RE
9189b38
9189b38
.TP
9189b38
.B \-\-hoogle
9189b38
output for Hoogle
9189b38
9189b38
.TP
9189b38
\fB\-\-html\-help=\fIformat
9189b38
produce index and table of contents in mshelp, mshelp2 or devhelp format 
9189b38
(with \fI\-h\fP)
9189b38
9189b38
.TP
9189b38
\fB\-\-source\-base=\fPURL
9189b38
Include links to the source files in the generated documentation, where URL
9189b38
is the base URL where the source files can be found.
9189b38
9189b38
.TP
9189b38
\fB\-s \fPURL, \fB\-\-source\-module=\fPURL
9189b38
Include links to the source files in the generated documentation, where URL
9189b38
is a source code link for each module (using the %{FILE} or %{MODULE} vars).
9189b38
9189b38
.TP
9189b38
\fB\-\-source\-entity=\fPURL
9189b38
Include links to the source files in the generated documentation, where URL
9189b38
is a source code link for each entity (using the %{FILE}, %{MODULE} or %{NAME} vars).
9189b38
9189b38
.TP
9189b38
\fB\-\-comments\-base=\fPURL
9189b38
URL for a comments link on the contents and index pages.
9189b38
.TP
9189b38
\fB\-\-comments\-module=\fPURL
9189b38
URL for a comments link for each module (using the %{MODULE} var).
9189b38
.TP
9189b38
\fB\-\-comments\-entity=\fPURL
9189b38
URL for a comments link for each entity (using the %{FILE}, %{MODULE} or %{NAME} vars).
9189b38
.TP
9189b38
.BI \-\-css= FILE
9189b38
Use the CSS
9189b38
.I FILE
9189b38
instead of the default stylesheet that comes with
9189b38
.B haddock 
9189b38
for HTML output. It should specify certain classes: see the default stylesheet for details.
9189b38
9189b38
.TP
9189b38
\fB\-p \fIFILE\fP, \-\-prologue=\fIFILE\fP
9189b38
Specify a file containing prologue text.
9189b38
9189b38
.TP
9189b38
\fB\-t \fITITLE\fP, \-\-title=\fITITLE\fP
9189b38
Use \fITITLE\fP as the page heading for each page in the documentation.
9189b38
This will normally be the name of the library being documented.
9189b38
9189b38
The title should be a plain string (no markup please!).
9189b38
9189b38
.TP
9189b38
\fB\-k \fINAME\fP, \-\-package=\fINAME\fP
9189b38
Specify the package name (optional).
9189b38
9189b38
.TP
9189b38
.BR \-n ", " \-\-no\-implicit\-prelude  
9189b38
do not assume Prelude is imported
9189b38
9189b38
.TP
9189b38
.BR \-d ", " \-\-debug
9189b38
Enable extra debugging output.
9189b38
9189b38
.TP
9189b38
.BR \-? ", " \-\-help
9189b38
Display help.
9189b38
9189b38
.TP
9189b38
.BR \-V ", " \-\-version
9189b38
Display version.
9189b38
9189b38
.TP
9189b38
.BR \-v ", " \-\-verbose
9189b38
Verbose status reporting.
9189b38
9189b38
.TP
9189b38
\fB\-\-use\-contents=\fPURL
9189b38
Use a separately-generated HTML contents page.
9189b38
9189b38
.TP
9189b38
.B \-\-gen\-contents
9189b38
Generate an HTML contents from specified  interfaces.
9189b38
9189b38
.TP
9189b38
\fB\-\-use\-index=\fPURL
9189b38
Use a separately-generated HTML index.
9189b38
9189b38
.TP
9189b38
.B \-\-gen\-index
9189b38
Generate an HTML index from specified interfaces.
9189b38
9189b38
.TP
9189b38
.B \-\-ignore\-all\-exports   
9189b38
Behave as if all modules have the ignore-exports atribute
9189b38
9189b38
.TP
9189b38
\fB\-\-hide=\fIMODULE
9189b38
Behave as if \fIMODULE\fP has the hide attribute.
9189b38
9189b38
.TP
9189b38
\fB\-\-use\-package=\fIPACKAGE 
9189b38
The modules being processed depend on \fIPACKAGE\fP.
9189b38
9189b38
.SH FILES
9189b38
.I /usr/bin/haddock
9189b38
.br
9189b38
.I /usr/share/haddock-2.6.1/html/plus.gif
9189b38
.br
9189b38
.I /usr/share/haddock-2.6.1/html/minus.gif
9189b38
.br
9189b38
.I /usr/share/haddock-2.6.1/html/haskell_icon.gif
9189b38
.br
9189b38
.I /usr/share/haddock-2.6.1/html/haddock.js
9189b38
.br
9189b38
.I /usr/share/haddock-2.6.1/html/haddock.css
9189b38
.br
9189b38
.I /usr/share/haddock-2.6.1/html/haddock-DEBUG.css
9189b38
9189b38
.SH SEE ALSO
9189b38
.IR /usr/share/doc/haddock/ ,
9189b38
.br
9189b38
the Haddock homepage
9189b38
.UR http://haskell.org/haddock/
9189b38
(http://haskell.org/haddock/)
9189b38
.UE
9189b38
9189b38
.SH COPYRIGHT
9189b38
Haddock version 2.6.1
9189b38
9189b38
Copyright 2006-2010  Simon Marlow <simonmar@microsoft.com>, Dawid Waern <david.waern@gmail.com>.
9189b38
All rights reserved.
9189b38
9189b38
9189b38
.SH AUTHOR
9189b38
This manual page was written by Michael Weber <michaelw@debian.org>
9189b38
for the Debian GNU/Linux system (but may be used by others).
9189b38
9189b38
.\" Local variables:
9189b38
.\" mode: nroff
9189b38
.\" End: