Drop module qualifier from punned record fields (#11662)
authorAdam Gundry <adam@well-typed.com>
Sat, 5 Mar 2016 19:02:32 +0000 (20:02 +0100)
committerBen Gamari <ben@smart-cactus.org>
Sat, 5 Mar 2016 19:02:33 +0000 (20:02 +0100)
commitbd681bceba535d0e67e8182964dc167877e4756d
tree6f631ac256602860c5384fd797762661e1414cf9
parent1d6177b133f3a6ac28cc8a679807563cfca3c56a
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
compiler/rename/RnPat.hs
testsuite/tests/rename/should_compile/T11662.hs [new file with mode: 0644]
testsuite/tests/rename/should_compile/T11662_A.hs [new file with mode: 0644]
testsuite/tests/rename/should_compile/all.T