[GHC] #10653: PatternSynonyms should be imported/exported as part of the wildcard notation
GHC
ghc-devs at haskell.org
Mon Sep 14 15:05:14 UTC 2015
#10653: PatternSynonyms should be imported/exported as part of the wildcard
notation
-------------------------------------+-------------------------------------
Reporter: gridaphobe | Owner: mpickering
Type: feature request | Status: new
Priority: high | Milestone: 8.0.1
Component: Compiler | Version: 7.11
Resolution: | Keywords: pattern
| synonyms
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by goldfire):
I think Simon's worry is that there will be some inference of associations
between pattern synonyms and datatypes. In the proposals as I see them,
this is ''not'' the case. The programmer declares, in an export list, what
to export with what. No type-checking needed. If we want (and I'm not sure
we do), we can add validity checks after type-checking to make sure that
associated pattern synonyms (or arbitrary values) have suitable types (for
some yet-to-be-specified meaning of "suitable").
Does that clarify?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10653#comment:22>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list