Refinements to the Haddock 2 integration

David Waern davve at
Fri Nov 9 11:44:56 EST 2007

Hi everyone,

Here's a patch that adds (hopefully) correct pre-processing to the Haddock
2 command. It should really be added to the Haddock < 2 path as well
(which AFAIK doesn't do any pre-processing except for CPP and Unlit), but
I've avoided this because of the risk of introducing bugs in the much-used
Haddock < 2 path. In the future this code will be replaced by the new make
system anyway.

The patch also adds CPP include paths and output paths to the commands
sent to GHC (via Haddock). The output paths are needed if certain changes
to the GHC API don't make it into GHC 6.8.2.

With this patch I'm now able to process all boot and core libs of GHC
6.8.1 including base (with a small patch for its Setup.lhs). Hopefully we
can get it into the next version of Cabal bundled with GHC.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: haddock2-preprocess.patch
Type: text/x-patch
Size: 17809 bytes
Desc: not available
Url :

More information about the cabal-devel mailing list