class ??? with Haddock

Wolfgang Jeltsch wolfgang at jeltsch.net
Thu Jan 8 17:56:09 EST 2004


Am Donnerstag, 8. Januar 2004 17:44 schrieb Simon Marlow:
> [...]

> One thing I forgot to mention is that you also need to remove the pesky
> lines beginning with '#' that the C preprocessor leaves behind.  Here's what
> we do in GHC:
>
> 	$ ghc -D__HADDOCK__ -E -cpp Foo.hs -o Foo.tmp
>       $ sed -e 's/^#.*//' <Foo.tmp >Foo.raw-hs

I use cpp with option -P to solve this problem.

> Cheers,
> 	Simon

Wolfgang



More information about the Haskell mailing list