Misleading msg with qualified imports "No module named X imported"
authorRoland Senn <rsx@bluewin.ch>
Tue, 11 Dec 2018 18:20:37 +0000 (13:20 -0500)
committerBen Gamari <ben@smart-cactus.org>
Tue, 11 Dec 2018 18:20:54 +0000 (13:20 -0500)
commit4c174dddc7b36ebf97ba0e182f843d563e3d598c
tree9fcd0e52ad3804338e86c78a343b81219309a36d
parent54ee148c2b28d2326cfd273aed4842c2b53e2625
Misleading msg with qualified imports "No module named X imported"

To check whether a given module has been imported, we do the following:
From the list of all qualified names we extract the distinct module
names to a list of module names.
Then we check whether the given module name is in this list of module
names.

Test Plan: make test TEST=T14225

Reviewers: mpickering, hvr, monoidal, osa1, bgamari

Reviewed By: bgamari

Subscribers: rwbarton, carter

GHC Trac Issues: #14225

Differential Revision: https://phabricator.haskell.org/D5331
compiler/rename/RnUnbound.hs
testsuite/tests/rename/should_fail/T14225.script [new file with mode: 0644]
testsuite/tests/rename/should_fail/T14225.stderr [new file with mode: 0644]
testsuite/tests/rename/should_fail/all.T