[GHC] #2041: Allow splicing in concrete syntax

GHC cvs-ghc at haskell.org
Fri Oct 8 00:39:50 EDT 2010


#2041: Allow splicing in concrete syntax
---------------------------------+------------------------------------------
    Reporter:  igloo             |        Owner:              
        Type:  feature request   |       Status:  new         
    Priority:  normal            |    Milestone:  _|_         
   Component:  Template Haskell  |      Version:  6.8.2       
    Keywords:                    |     Testcase:              
   Blockedby:                    |   Difficulty:  Unknown     
          Os:  Unknown/Multiple  |     Blocking:              
Architecture:  Unknown/Multiple  |      Failure:  None/Unknown
---------------------------------+------------------------------------------
Changes (by reinerp):

 * cc: reiner.pope@… (added)
  * failure:  => None/Unknown


Comment:

 Another use for this would be for creating custom quasiquoters with
 antiquoting. Say, to create a custom list quasiquoter:

 {{{
 [list| x^2+y, 3*z |]
 }}}

 the quasiquoter needs to parse antiquoted expressions such as {{{x^2+y}}}
 and {{{3*z}}} into TH abstract syntax. Current quasiquoters mostly do this
 using haskell-src-exts (via the haskell-src-meta library), but it would be
 neater just to return a {{{RawE antiquoted_stuff}}} expression.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2041#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list