Give helpful advice when a fully qualified name is not in scope
authorJoachim Breitner <mail@joachim-breitner.de>
Tue, 10 Nov 2015 16:07:10 +0000 (17:07 +0100)
committerJoachim Breitner <mail@joachim-breitner.de>
Fri, 13 Nov 2015 09:13:20 +0000 (10:13 +0100)
commite66f79dfb22031dd3f75dd3eb341e8269ab51d83
tree157fdd402b439ac8c82439d37d02084b4e899fd9
parent2290c8bd8c3faee0cb7dc1c2c7951bb9d5e3ebf9
Give helpful advice when a fully qualified name is not in scope

This implements #11071. It needs to thread through a GlobalRdrEnv
corresponding to the export list of the module if its exports were not
restricted.

A refactoring of ImportedModsVal into a proper data type follows.

Differential Revision: https://phabricator.haskell.org/D1462
31 files changed:
compiler/iface/MkIface.hs
compiler/main/HscMain.hs
compiler/main/HscTypes.hs
compiler/rename/RnEnv.hs
compiler/rename/RnNames.hs
compiler/typecheck/TcRnTypes.hs
compiler/utils/Outputable.hs
testsuite/tests/ghc-api/annotations/T10313.stderr
testsuite/tests/ghc-api/annotations/T10399.stderr
testsuite/tests/ghci/scripts/T2452.stderr
testsuite/tests/ghci/scripts/T8639.stderr
testsuite/tests/ghci/scripts/ghci036.stderr
testsuite/tests/module/mod134.stderr
testsuite/tests/module/mod62.stderr
testsuite/tests/module/mod73.stderr
testsuite/tests/module/mod74.stderr
testsuite/tests/module/mod88.stderr
testsuite/tests/rename/prog002/rename.prog002.stderr
testsuite/tests/rename/should_fail/T10781.stderr
testsuite/tests/rename/should_fail/T11071.hs [new file with mode: 0644]
testsuite/tests/rename/should_fail/T11071.stderr [new file with mode: 0644]
testsuite/tests/rename/should_fail/T2901.stderr
testsuite/tests/rename/should_fail/T5657.stderr
testsuite/tests/rename/should_fail/T5892b.stderr
testsuite/tests/rename/should_fail/all.T
testsuite/tests/rename/should_fail/rnfail030.stderr
testsuite/tests/rename/should_fail/rnfail031.stderr
testsuite/tests/rename/should_fail/rnfail032.stderr
testsuite/tests/rename/should_fail/rnfail033.stderr
testsuite/tests/rename/should_fail/rnfail034.stderr
testsuite/tests/safeHaskell/ghci/p4.stderr