[GHC] #5144: Pattern synonyms
GHC
ghc-devs at haskell.org
Thu Aug 22 12:11: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 igloo):
Ah, I see, I had expected that something defined with "pattern" (e.g.
`pattern Arrow t1 t2 = App "->" [t1, t2]`) could only be used as a
pattern. I think a different keyword, e.g. "synonym" (or perhaps "view",
as Simon suggested) would be better in that case.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/5144#comment:28>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list