The GHC build includes Haddock, and the Haddock documentation for libraries is built and installed by default.
You can disable Haddock documentation for your build by adding
HADDOCK_DOCS = NO
to your mk/build.mk.
It is also possible to process the libraries sources using HsColour, and for the Haddock documentation to include links to the HsColoured source code; in order to do this, just install HsColour and re-run ./configure. The configure script will tell you whether it found HsColour at the end.
To build the Haddock docs for a given library, do this:
cd libraries/basemake html
In order to process the documentation into HTML or printable formats, you need appropriate tools installed. The configure script searches for the appropriate tools, and will tell you whether it found any.
They are set to YES or NO in mk/config.mk by configure, depending on whether the necessary tools were detected on your system. You can override the automatic settings in your mk/build.mk file.
To build a document on its own, for example the Users Guide, do this:
cd docs/users_guidemake html
substitute 'html' for 'pdf' or 'ps' to build other types of documentation. Note that this will still build the whole compiler if you have not already built it as some pages
of the documentation are automatically generated.
After building you can find the html users' guide in docs/users_guide/build-html.