[GHC] #13608: Expose the type of quasiquotes

GHC ghc-devs at haskell.org
Wed Jun 7 09:48:43 UTC 2017


#13608: Expose the type of quasiquotes
-------------------------------------+-------------------------------------
        Reporter:                    |                Owner:
  facundo.dominguez                  |  facundo.dominguez
            Type:  bug               |               Status:  patch
        Priority:  normal            |            Milestone:
       Component:  Template Haskell  |              Version:  8.0.1
      Resolution:                    |             Keywords:  QuasiQuotes
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  12778             |  Differential Rev(s):  Phab:D3610
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 > Given a nested splice, how do you associate it with a post-processor

 Well, GHC would apply the post-procssor to the expression for the top-
 level splice.  It would pass the expression, so no need for any other
 association.

 I don't understand the nested-splice issue.

 Yes, it's a bit like a plugin.  But then TH splices are already a bit like
 a plugin: both provide code that the compiler links dynamically and runs
 at compile time.

 I'm a bit ouf of my depth.  Is anyone else interested in this?  Designing
 for a single use-case is sometimes justified, but it's better if there are
 more.

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


More information about the ghc-tickets mailing list