[GHC] #11662: Regression using NamedFieldPuns with qualified field names

GHC ghc-devs at haskell.org
Sat Mar 5 20:15:12 UTC 2016


#11662: Regression using NamedFieldPuns with qualified field names
-------------------------------------+-------------------------------------
        Reporter:  hesselink         |                Owner:  adamgundry
            Type:  bug               |               Status:  patch
        Priority:  highest           |            Milestone:  8.0.1
       Component:  Compiler          |              Version:  8.0.1-rc2
  (Parser)                           |
      Resolution:                    |             Keywords:  ORF
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  GHC rejects       |            Test Case:
  valid program                      |  rename/should_compile/T11662
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D1965
       Wiki Page:                    |
-------------------------------------+-------------------------------------

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

 In [changeset:"bd681bceba535d0e67e8182964dc167877e4756d/ghc"
 bd681bce/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="bd681bceba535d0e67e8182964dc167877e4756d"
 Drop module qualifier from punned record fields (#11662)

 A record pattern match, construction or update like
 `Rec { Mod.f }` should expand to `Rec { Mod.f = f }` rather
 than `Rec { Mod.f = Mod.f }`.

 Test Plan: New test rename/should_compile/T11662

 Reviewers: austin, bgamari

 Reviewed By: bgamari

 Subscribers: hesselink, thomie

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

 GHC Trac Issues: #11662
 }}}

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


More information about the ghc-tickets mailing list