[GHC] #12164: Type signatures in patterns not (yet) handled by Template Haskell

GHC ghc-devs at haskell.org
Tue Aug 30 21:47:37 UTC 2016


#12164: Type signatures in patterns not (yet) handled by Template Haskell
-------------------------------------+-------------------------------------
        Reporter:  ezyang            |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Template Haskell  |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D2490
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by mikhail.vorozhtsov):

 No, I only need type constructors. It looks like this:

 {{{
 defState "Name"
   [| \(var1 :: TypeName1, "A state variable")
      \(var2 :: TypeName2, "Another one") ->
        BEHAVIOR
   |]
 }}}

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


More information about the ghc-tickets mailing list