diff options
author | Joachim Breitner <mail@joachim-breitner.de> | 2015-11-18 12:18:17 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2015-11-18 12:18:46 +0100 |
commit | 11e336e4a4f7a0c0319d9bfb1a6931a5861299cf (patch) | |
tree | 6b8f588408d975bca31cbb685445f9d2c46ebd89 /testsuite/tests/annotations | |
parent | 98a4fa5fb740ce43a1787eb5730e35b463a2de79 (diff) | |
download | haskell-11e336e4a4f7a0c0319d9bfb1a6931a5861299cf.tar.gz |
More import related hints
Now for unqualified imports. Improves upon #11071.
Unfortunately, it seems that since 7.10, ghc will not print all
out-of-scope errors.
Test Plan: test suite updated
Reviewers: austin, thomie, bgamari
Reviewed By: bgamari
Differential Revision: https://phabricator.haskell.org/D1478
GHC Trac Issues: #11071
Diffstat (limited to 'testsuite/tests/annotations')
-rw-r--r-- | testsuite/tests/annotations/should_fail/annfail11.stderr | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuite/tests/annotations/should_fail/annfail11.stderr b/testsuite/tests/annotations/should_fail/annfail11.stderr index 384f6179aa..40bcebb904 100644 --- a/testsuite/tests/annotations/should_fail/annfail11.stderr +++ b/testsuite/tests/annotations/should_fail/annfail11.stderr @@ -1,10 +1,14 @@ -annfail11.hs:3:1: +annfail11.hs:3:1: error: Not in scope: ‘length’ + Perhaps you want to add ‘length’ to the import list + in the import of ‘Prelude’ (annfail11.hs:1:8-16). In the annotation: {-# ANN length "Cannot annotate other modules yet" #-} -annfail11.hs:4:1: +annfail11.hs:4:1: error: Not in scope: type constructor or class ‘Integer’ + Perhaps you want to add ‘Integer’ to the import list + in the import of ‘Prelude’ (annfail11.hs:1:8-16). In the annotation: {-# ANN type Integer "Cannot annotate other modules yet" #-} |