[GHC] #11658: Type synonym with context in pattern synonym
GHC
ghc-devs at haskell.org
Mon Feb 29 04:49:34 UTC 2016
#11658: Type synonym with context in pattern synonym
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.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 goldfire):
While I understand why the syntax might suggest that this is a good idea.
I don't support this proposal. The thing after `pattern Blah ::` is
'''not''' a type. It's a pattern synonym type, which is something else. Of
course, type synonyms should be allowed in pattern synonym types, but we
shouldn't confuse the normal `=>` that might appear in a type synonym with
the `=>` that appears in a pattern synonym type.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11658#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list