Improve the warning message of qualified unused imports.
authorHE, Tao <sighingnow@gmail.com>
Mon, 19 Mar 2018 15:58:26 +0000 (11:58 -0400)
committerBen Gamari <ben@smart-cactus.org>
Mon, 19 Mar 2018 16:05:11 +0000 (12:05 -0400)
commitfad822e2a5aa4373c3aa64e913e51fd5509c3f67
tree935a0423f9126c19288a14849b4d6fe667680392
parent39c740636dfc7ce4b5590fa60adc6d5ecf5a79b6
Improve the warning message of qualified unused imports.

Pretty-print unused imported names unqualified unconditionally to
make the warning message consistent for ambiguous/unambiguous
identifiers.

Signed-off-by: HE, Tao <sighingnow@gmail.com>
Test Plan: make test TEST="T14881"

Reviewers: bgamari, simonpj

Reviewed By: simonpj

Subscribers: simonpj, rwbarton, thomie, carter

GHC Trac Issues: #14881

Differential Revision: https://phabricator.haskell.org/D4461
compiler/basicTypes/Name.hs
compiler/rename/RnNames.hs
testsuite/tests/rename/should_compile/T14881.hs [new file with mode: 0644]
testsuite/tests/rename/should_compile/T14881.stderr [new file with mode: 0644]
testsuite/tests/rename/should_compile/T14881Aux.hs [new file with mode: 0644]
testsuite/tests/rename/should_compile/all.T