[GHC] #5144: Pattern synonyms

GHC ghc-devs at haskell.org
Thu Aug 22 11:54:34 UTC 2013


#5144: Pattern synonyms
-------------------------------------+------------------------------------
        Reporter:  simonpj           |            Owner:  cactus
            Type:  feature request   |           Status:  new
        Priority:  normal            |        Milestone:  _|_
       Component:  Compiler          |          Version:
      Resolution:                    |         Keywords:
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown      |       Difficulty:  Unknown
       Test Case:                    |       Blocked By:
        Blocking:                    |  Related Tickets:
-------------------------------------+------------------------------------

Comment (by simonpj):

 Replying to [comment:24 igloo]:
 > I haven't followed the design, but I would expect exporting "pattern P"
 to either be an error ("P is a data constructor, not a pattern") or to
 export P in a way that allows it only to be used as a pattern, not an
 expression.

 Well in the design here [wiki:PatternSynonyms], `pattern P` exports P for
 use both in patterns and expressions.  By all means suggest alternative
 designs; that's what this thread is all about.

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




More information about the ghc-tickets mailing list