diff options
author | Joachim Breitner <mail@joachim-breitner.de> | 2015-11-10 17:07:10 +0100 |
---|---|---|
committer | Joachim Breitner <mail@joachim-breitner.de> | 2015-11-13 10:13:20 +0100 |
commit | e66f79dfb22031dd3f75dd3eb341e8269ab51d83 (patch) | |
tree | 157fdd402b439ac8c82439d37d02084b4e899fd9 /testsuite/tests/rename/should_fail/rnfail034.stderr | |
parent | 2290c8bd8c3faee0cb7dc1c2c7951bb9d5e3ebf9 (diff) | |
download | haskell-e66f79dfb22031dd3f75dd3eb341e8269ab51d83.tar.gz |
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
Diffstat (limited to 'testsuite/tests/rename/should_fail/rnfail034.stderr')
-rw-r--r-- | testsuite/tests/rename/should_fail/rnfail034.stderr | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuite/tests/rename/should_fail/rnfail034.stderr b/testsuite/tests/rename/should_fail/rnfail034.stderr index 78bc649c29..63e6eb5037 100644 --- a/testsuite/tests/rename/should_fail/rnfail034.stderr +++ b/testsuite/tests/rename/should_fail/rnfail034.stderr @@ -1,6 +1,7 @@ -rnfail034.hs:4:11: Qualified name in binding position: M.y +rnfail034.hs:4:11: error: Qualified name in binding position: M.y -rnfail034.hs:4:26: +rnfail034.hs:4:26: error: Not in scope: ‘M.y’ Perhaps you meant ‘M.g’ (line 4) + No module named ‘M’ is imported. |