Relevant Bindings no longer reports shadowed bindings (fixes #12176)

Authored by anniecherkaev on Aug 1 2016, 1:30 AM.

Description

Relevant Bindings no longer reports shadowed bindings (fixes Trac #12176)

Summary: Modified the RelevantBindings method in TcErrors.hs to only search over
non-shadowed bindings.

Test Plan: Wrote 2 simple test cases, verified that it worked with multiple
shadowed bindings, and also non-shadowed bindings.

Reviewers: austin, bgamari, ezyang

Reviewed By: ezyang

Subscribers: ezyang, thomie

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

GHC Trac Issues: Trac #12177