[commit: ghc] wip/T11071: Give helpful advice when a fully qualified name is not in scope (ed92f63)
git at git.haskell.org
git at git.haskell.org
Wed Nov 11 12:04:48 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/T11071
Link : http://ghc.haskell.org/trac/ghc/changeset/ed92f63e6305d9f8b82e0f2fe11ed4c9827b97d2/ghc
>---------------------------------------------------------------
commit ed92f63e6305d9f8b82e0f2fe11ed4c9827b97d2
Author: Joachim Breitner <mail at joachim-breitner.de>
Date: Tue Nov 10 17:07:10 2015 +0100
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
>---------------------------------------------------------------
ed92f63e6305d9f8b82e0f2fe11ed4c9827b97d2
compiler/iface/MkIface.hs | 6 +-
compiler/main/HscMain.hs | 4 +-
compiler/main/HscTypes.hs | 2 +-
compiler/rename/RnEnv.hs | 108 ++++++++++++++++++++-
compiler/rename/RnNames.hs | 16 +--
compiler/typecheck/TcRnTypes.hs | 4 +-
compiler/utils/Outputable.hs | 8 +-
testsuite/tests/ghc-api/annotations/T10313.stderr | 12 ++-
testsuite/tests/ghc-api/annotations/T10399.stderr | 12 ++-
testsuite/tests/ghci/scripts/T2452.stderr | 4 +-
testsuite/tests/ghci/scripts/T8639.stderr | 3 +-
testsuite/tests/ghci/scripts/ghci036.stderr | 4 +-
testsuite/tests/module/mod134.stderr | 4 +-
testsuite/tests/module/mod62.stderr | 5 +-
testsuite/tests/module/mod73.stderr | 3 +-
testsuite/tests/module/mod74.stderr | 4 +-
testsuite/tests/module/mod88.stderr | 5 +-
.../tests/rename/prog002/rename.prog002.stderr | 5 +-
testsuite/tests/rename/should_fail/T10781.stderr | 4 +-
testsuite/tests/rename/should_fail/T11071.hs | 28 ++++++
testsuite/tests/rename/should_fail/T11071.stderr | 53 ++++++++++
testsuite/tests/rename/should_fail/T2901.stderr | 7 +-
testsuite/tests/rename/should_fail/T5657.stderr | 6 +-
testsuite/tests/rename/should_fail/T5892b.stderr | 4 +-
testsuite/tests/rename/should_fail/all.T | 1 +
.../tests/rename/should_fail/rnfail030.stderr | 5 +-
.../tests/rename/should_fail/rnfail031.stderr | 5 +-
.../tests/rename/should_fail/rnfail032.stderr | 4 +-
.../tests/rename/should_fail/rnfail033.stderr | 4 +-
.../tests/rename/should_fail/rnfail034.stderr | 5 +-
testsuite/tests/safeHaskell/ghci/p4.stderr | 1 +
31 files changed, 292 insertions(+), 44 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc ed92f63e6305d9f8b82e0f2fe11ed4c9827b97d2
More information about the ghc-commits
mailing list