From e66f79dfb22031dd3f75dd3eb341e8269ab51d83 Mon Sep 17 00:00:00 2001 From: Joachim Breitner Date: Tue, 10 Nov 2015 17:07:10 +0100 Subject: 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 --- testsuite/tests/safeHaskell/ghci/p4.stderr | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'testsuite/tests/safeHaskell/ghci/p4.stderr') diff --git a/testsuite/tests/safeHaskell/ghci/p4.stderr b/testsuite/tests/safeHaskell/ghci/p4.stderr index 5d70969f3a..a0dc5c319e 100644 --- a/testsuite/tests/safeHaskell/ghci/p4.stderr +++ b/testsuite/tests/safeHaskell/ghci/p4.stderr @@ -1,8 +1,9 @@ - -:5:9: error: - Not in scope: ‘System.IO.Unsafe.unsafePerformIO’ - -:6:9: error: - Variable not in scope: x :: IO Integer -> t - -:7:1: error: Variable not in scope: y + +:5:9: error: + Not in scope: ‘System.IO.Unsafe.unsafePerformIO’ + No module named ‘System.IO.Unsafe’ is imported. + +:6:9: error: + Variable not in scope: x :: IO Integer -> t + +:7:1: error: Variable not in scope: y -- cgit v1.2.1