hmake -cpp bug



About this list Date view Thread view Subject view Author view

Malcolm Wallace (malcolm-nhc@cs.york.ac.uk)
Thu, 22 Mar 2001 18:44:26 +0000


The fault in hmake which caused it to issue the -cpp flag to the Haskell compiler is easily fixed. It seems that the literate programming style was a partial cause. For some reason (I suspect GreenCard), hmake thought a % character in the first column of a source file indicated a need for the C pre-processor. A patch is appended. Regards, Malcolm diff -u -r1.5 src/hmake/GetDep.hs --- src/hmake/GetDep.hs 2001/02/05 18:39:03 1.5 +++ src/hmake/GetDep.hs 2001/03/22 18:35:45 @@ -57,7 +57,7 @@ (getImports source (zdefs opts ++ defs opts) file) -- previously (haskellImport kp file) hash ('\n':'#':_) = True - hash ('\n':'%':_) = True + -- hash ('\n':'%':_) = True -- why '%'? for GreenCard? hash (_:xs) = hash xs hash [] = False cpp = hash ('\n':content)


About this list Date view Thread view Subject view Author view