[GHC] #12857: associate pattern synonyms with a type synonym

GHC ghc-devs at haskell.org
Sun Nov 20 17:38:47 UTC 2016


#12857: associate pattern synonyms with a type synonym
-------------------------------------+-------------------------------------
        Reporter:  int-e             |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              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):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Iceland_jack):

 See #12767 about adding

 {{{#!hs
 pattern State :: (s -> (a, s)) -> State s a
 pattern State {runState} <- (S.runState -> runState)
   where State a           = state a
 }}}

 et al to transformers.

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


More information about the ghc-tickets mailing list