Reduce qualification in error messages from signature matching.
authorEdward Z. Yang <ezyang@cs.stanford.edu>
Thu, 8 Dec 2016 07:07:19 +0000 (23:07 -0800)
committerEdward Z. Yang <ezyang@cs.stanford.edu>
Thu, 8 Dec 2016 23:03:18 +0000 (15:03 -0800)
commit617d57d1166d67148f28401fabaf88295f1d3f06
tree4a7c6a19e5b0b6203f476f261104fb19cb49c645
parent62332f36b62431ddb9ab3c97365288c7d3fc2d39
Reduce qualification in error messages from signature matching.

Summary:
Previously, we always qualified names, even if they were defined
in the modules we were matching.  Adding the exports of the implementing
module into the RdrEnv greatly reduces the amount of qualification
(although we still can't qualify things that the signature *imported*.)

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Test Plan: validate

Reviewers: simonpj, austin, bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2803
15 files changed:
compiler/typecheck/TcBackpack.hs
testsuite/tests/backpack/should_fail/bkpfail06.stderr
testsuite/tests/backpack/should_fail/bkpfail07.stderr
testsuite/tests/backpack/should_fail/bkpfail10.stderr
testsuite/tests/backpack/should_fail/bkpfail11.stderr
testsuite/tests/backpack/should_fail/bkpfail12.stderr
testsuite/tests/backpack/should_fail/bkpfail13.stderr
testsuite/tests/backpack/should_fail/bkpfail14.stderr
testsuite/tests/backpack/should_fail/bkpfail15.stderr
testsuite/tests/backpack/should_fail/bkpfail17.stderr
testsuite/tests/backpack/should_fail/bkpfail22.stderr
testsuite/tests/backpack/should_fail/bkpfail23.stderr
testsuite/tests/backpack/should_fail/bkpfail25.stderr
testsuite/tests/backpack/should_fail/bkpfail26.stderr
testsuite/tests/backpack/should_fail/bkpfail27.stderr