#3719: Literate code with #
----------------------------------------+-----------------------------------
Reporter: zenzike | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler (Parser) | Version: 6.10.4
Resolution: wontfix | Keywords:
Difficulty: | Os: Unknown/Multiple
Testcase: | Architecture: Unknown/Multiple
Failure: GHC rejects valid program |
----------------------------------------+-----------------------------------
Comment (by zenzike):
Wouldn't it be better if these were written as
{{{
> #ifdef ENABLE_FOO
> ... foo ...
> #endif
}}}
instead?
It seems counter productive that in a literate file that there is no
allowance for # at the beginning of a line, without some special meaning
to ghc; since literate files should be, well, literate! If a CPP directive
should be fed through into ghc, wouldn't it be better on the end of a Bird
track?
In the meantime, is there a way of turning off the # as CPP directive
functionality?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3719#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs