[GHC] #15298: Support spliced function names in type signatures in TH declaration quotes

GHC ghc-devs at haskell.org
Sat Dec 22 02:11:40 UTC 2018


#15298: Support spliced function names in type signatures in TH declaration quotes
-------------------------------------+-------------------------------------
        Reporter:  ntc2              |                Owner:  (none)
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:  8.8.1
       Component:  Compiler          |              Version:  8.4.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #6089             |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by mikelpr):

 I hit this too. I'm working with yesod+persistent, and I want to expose
 GET+PUT with JSON for some tables, and all they differ in are the function
 names and the datatypes they use for the key, and I can't generate these
 mainly same functions for the routes with [d| get$(funame)R put$(funame)R
 ...

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


More information about the ghc-tickets mailing list