Drop module qualifier from punned record fields (#11662)
ClosedPublic

Authored by adamgundry on Mar 1 2016, 12:33 PM.

Details

Summary

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

Diff Detail

Repository
rGHC Glasgow Haskell Compiler
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
adamgundry updated this revision to Diff 6809.Mar 1 2016, 12:33 PM
adamgundry retitled this revision from to Drop module qualifier from punned record fields (#11662).
adamgundry updated this object.
adamgundry edited the test plan for this revision. (Show Details)
adamgundry added reviewers: austin, bgamari.
adamgundry updated the Trac tickets for this revision.
bgamari accepted this revision.Mar 4 2016, 5:39 PM
bgamari edited edge metadata.

Thanks @adamgundry! Looks good to me.

testsuite/tests/rename/should_compile/T11662.hs
2

Thanks for the test.

This revision is now accepted and ready to land.Mar 4 2016, 5:39 PM
This revision was automatically updated to reflect the committed changes.