[GHC] #10653: PatternSynonyms should be imported/exported as part of the wildcard notation

GHC ghc-devs at haskell.org
Tue Dec 8 10:09:57 UTC 2015


#10653: PatternSynonyms should be imported/exported as part of the wildcard
notation
-------------------------------------+-------------------------------------
        Reporter:  gridaphobe        |                Owner:  mpickering
            Type:  feature request   |               Status:  closed
        Priority:  high              |            Milestone:  8.0.1
       Component:  Compiler          |              Version:  7.11
      Resolution:  fixed             |             Keywords:
                                     |  PatternSynonyms, pattern synonyms
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D1258
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Herbert Valerio Riedel <hvr@…>):

 In [changeset:"9f4ca5afaccc8a397d8ee91b5423a9c2fcd151ce/ghc" 9f4ca5a/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="9f4ca5afaccc8a397d8ee91b5423a9c2fcd151ce"
 Associate ErrorCall pattern with ErrorCall type

 This way,

     import Control.Exception (ErrorCall(ErrorCall))

 or

     import Control.Exception (ErrorCall(..))

 work as expected, and import the `ErrorCall` compatibility pattern as
 well.

 When #5273 was implemented, it wasn't possible yet to associated
 patterns with their types (see #10653).

 Reviewed By: austin

 Differential Revision: https://phabricator.haskell.org/D1588
 }}}

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


More information about the ghc-tickets mailing list