From 8dfc491f900907ea236c627745fe90b72a9aa56b Mon Sep 17 00:00:00 2001 From: simonmar Date: Fri, 9 Jan 2004 12:45:46 +0000 Subject: [haddock @ 2004-01-09 12:45:46 by simonmar] Add -optP-P to example ghc command line. --- doc/haddock.sgml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/doc/haddock.sgml b/doc/haddock.sgml index 1539126b..72446566 100644 --- a/doc/haddock.sgml +++ b/doc/haddock.sgml @@ -550,16 +550,19 @@ which we also need to run the C pre-processor: -$ ghc -cpp -E -D__HADDOCK__ Foo.lhs -o Foo.hs +$ ghc -cpp -E -optP-P -D__HADDOCK__ Foo.lhs -o Foo.hs $ haddock -h Foo.hs ... The option to GHC says "stop after - pre-processing", the turns on the C - pre-processor, and the option + pre-processing", the option turns on the C + pre-processor, the option tells the C + pre-processor not to leave any extra dropping behind (see the + description of the option in the gcc manual + for details), and the option defines the symbol __HADDOCK__ when - pre-processing (this is sometimes handy if you need to - any pre-processing conditionals in your source which depend on + pre-processing (this is sometimes handy if you need to any + pre-processing conditionals in your source which depend on whether the source is going to be fed to Haddock). -- cgit v1.2.3