#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):
As Yitz points out, third alterntive would be to let quasi-quotes end with
{{{|]}}}. A downside is that then different quasi-quotation authors will
pick different encodings. I like the idea of having a convenience function
like Yitz proposed, because it'll encourage using a standard encoding.
Btw I totally agree that letting the quasi-quoters determine where the
quote ends goes too far. It's not just GHC, it affects other development
tools as well, starting with syntax highlighting. Those tools would then
have to learn about the intricacies of every quasi-quoter in existence to
do a decent job, which is clearly impossible. (And finally, don't forget
the poor human reading the code.)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5348#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