#5427: '#' becomes an illegal first-character of a QuasiQuote line when CPP is
enabled
-------------------------------+--------------------------------------------
Reporter: GregWeber | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Template Haskell | Version: 7.2.1
Resolution: wontfix | Keywords:
Testcase: | Blockedby:
Difficulty: | Os: Unknown/Multiple
Blocking: | Architecture: Unknown/Multiple
Failure: None/Unknown |
-------------------------------+--------------------------------------------
Changes (by igloo):
* status: new => closed
* resolution: => wontfix
Comment:
When CPP is enabled, we just run `cpp` on the source code. `cpp` doesn't
know anything about Haskell, so it can't ignore quasi-quoted content.
One option is to provide a way to escape '#'s in your quasi-quoter, so
e.g. hamlet would parse
{{{
[hamlet|
\#{foo}
|]
}}}
as if it were `#{foo}`.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5427#comment:2>
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