[GHC] #8761: Make pattern synonyms work with Template Haskell

GHC ghc-devs at haskell.org
Wed Oct 12 16:12:14 UTC 2016


#8761: Make pattern synonyms work with Template Haskell
-------------------------------------+-------------------------------------
        Reporter:  goldfire          |                Owner:  bollmann
            Type:  feature request   |               Status:  closed
        Priority:  normal            |            Milestone:  8.2.1
       Component:  Template Haskell  |              Version:  8.0.1
      Resolution:  fixed             |             Keywords:
                                     |  PatternSynonyms
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D1940
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by heisenbug):

 Not sure how it is supposed to work, but can I somehow pass a name to be
 spliced into a pattern synonym quote?
 {{{#!haskell
 :t \n -> [d| pattern $(n) = 42 |]
 }}}
 errors out (unfortunately).

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


More information about the ghc-tickets mailing list