#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 YitzGale):

 Since we mentioned my example bracket quoter again,
 I will fix some bugs that were in it,
 with apologies:

 {{{
 backslashQuoter :: String -> String
 backslashQuoter ('|':s) = '|' :
     case span (== '\\') s of
        (_:bs, ']':cs) -> bs ++ ']' : backslashQuoter cs
        (bs, cs)       -> bs ++       backslashQuoter cs
 backslashQuoter (c:cs) = c :         backslashQuoter cs
 backslashQuoter _      = []
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5348#comment:16>
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

Reply via email to