[GHC] #5348: Template Haskell quasiquote escapes

GHC cvs-ghc at haskell.org
Wed Aug 3 10:30:15 CEST 2011


#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



More information about the Glasgow-haskell-bugs mailing list