Remove the -optP-P from .raw-hs generation
authorSimon Marlow <simonmar@microsoft.com>
Thu, 7 Sep 2006 15:18:55 +0000 (15:18 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Thu, 7 Sep 2006 15:18:55 +0000 (15:18 +0000)
We need the #line directives left in, so that Haddock can figure out
what the name of the original source file was called, which is
necessary for generating source links.  You probably now need an
updated Haddock to generate HTML from the libraries, but a release
will be forthcoming shortly.

mk/package.mk

index 1cd090a..cbec48d 100644 (file)
@@ -387,10 +387,10 @@ $(HTML_DOC) : $(HS_PPS)
 CLEAN_FILES += $(PACKAGE).haddock
 
 %.raw-hs : %.lhs
-       $(HC) $(HC_OPTS) -D__HADDOCK__ -E -optP-P $< -o $@
+       $(HC) $(HC_OPTS) -D__HADDOCK__ -E $< -o $@
 
 %.raw-hs : %.hs
-       $(HC) $(HC_OPTS) -D__HADDOCK__ -E -optP-P $< -o $@
+       $(HC) $(HC_OPTS) -D__HADDOCK__ -E $< -o $@
 
 HTML_INSTALL_DIR = $(datadir)/html/libraries/$(PACKAGE)
 #  NOT the same as HTML_DIR_INSTALLED when BIN_DIST is on