#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
---------------------------------+------------------------------------------
Comment(by int-e):
Replying to [comment:10 simonpj]:
> But can you outline how Kathleen's !PadsHaskell will work? She has
quasiquotes that involve fragments of Haskell:
{{{
[pads| blah blah { f x = "wubble" } blah blah |]
}}}
With Yitz' proposal, she could anticipate this problem and use the
predefined convenience unescape function in the definition of the quasi-
quoter, or define a custom one if {{{|\]}}}, {{{|\\]}}}... clash with the
Pads syntax for some reason.
I really like the simplicity of this approach, and it preserves a
reasonable amount of flexibility (in particular the choice of escape
character can be made by the quasi-quoter author).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5348#comment:12>
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