[GHC] #11985: Core lint error on record syntax update/pattern synonym

GHC ghc-devs at haskell.org
Sun May 1 22:49:31 UTC 2016


#11985: Core lint error on record syntax update/pattern synonym
-------------------------------------+-------------------------------------
        Reporter:  Iceland_jack      |                Owner:  mpickering
            Type:  bug               |               Status:  patch
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.1
      Resolution:                    |             Keywords:
                                     |  PatternSynonyms
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D2147
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"cd85dc84b36bc5f600eb1b3805024a5b2443e1a3/ghc"
 cd85dc84/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="cd85dc84b36bc5f600eb1b3805024a5b2443e1a3"
 Make sure record pattern synonym selectors are in scope in GHCi.

 Beforehand, when a record pattern synonym was defined in GHCi
 the selectors would not be in scope. This is because of `is_sub_bndr`
 in `HscTypes.icExtendGblRdrEnv` was throwing away the selectors.

 This was broken by the fix to #10520 but it is easy to resolve.

 Reviewers: austin, bgamari, simonpj

 Reviewed By: simonpj

 Subscribers: thomie

 Differential Revision: https://phabricator.haskell.org/D2147

 GHC Trac Issues: #11985
 }}}

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


More information about the ghc-tickets mailing list