[GHC] #8583: Associated pattern synonyms

GHC ghc-devs at haskell.org
Sat Jan 9 09:36:21 UTC 2016


#8583: Associated pattern synonyms
-------------------------------------+-------------------------------------
        Reporter:  cactus            |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:
      Resolution:                    |             Keywords:
                                     |  PatternSynonyms
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:  5144              |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Iceland_jack):

 This can also be faked using prisms and pattern synonyms:
 [https://www.reddit.com/r/haskell/comments/38owdh/question_would_an_associated_data_constructor_be/crxnn71
 reddit comment].

 For visible type application in patterns per [comment:7 Richard's comment]
 see #11350.

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


More information about the ghc-tickets mailing list