Do not warn about unused underscore-prefixed fields (fixes Trac #12609)

Authored by adamgundry on Oct 1 2016, 4:56 PM.

Description

Do not warn about unused underscore-prefixed fields (fixes Trac Trac #12609)

When DuplicateRecordFields is enabled, the mangling of selector names
was causing them to be reported as unused even if prefixed by an
underscore. This corrects the OccName used by the check.

Test Plan: New test overloadedrecflds/should_compile/T12609

Reviewers: austin, bgamari

Reviewed By: bgamari

Subscribers: thomie

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

GHC Trac Issues: Trac #12609

Details

Committed
bgamariOct 1 2016, 7:01 PM
Pushed
bgamariOct 2 2016, 12:01 PM
Reviewer
bgamari
Differential Revision
D2549: Do not warn about unused underscore-prefixed fields (fixes Trac #12609)
Parents
rGHCDIFFce3370e06165: PPC/CodeGen: fix lwa instruction generation
Branches
Unknown
Tags
Unknown