#5348: Template Haskell quasiquote escapes
---------------------------------+------------------------------------------
Reporter: simonpj | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.0.3
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Changes (by gershomb):
* cc: gershomb@… (added)
Comment:
I just know that I really don't like the idea of "\\" being an escape
sequence. Its already too common an escape sequence elsewhere in the PL
world. So if I'm writing, say, inline javascript code, that includes
string literals with escaped backslashes, then I have to double-escape
those escaped backslashes, which can get ugly quickly. Also, \\ is the
list difference operator in Haskell, so if I'm writing an inline haskell-
like language, then I've lost a fairly standard bit of syntax.
Moving to just "\|]" to escape the end of a quote sounds like a good idea.
I don't think its a great loss to not have the ability to end a quasiquote
with a backslash. Any quasiquoter I could imagine would/should be able to
handle trailing whitespace, in which case one could always end the quote
with "\ |]".
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5348#comment:8>
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