diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2018-07-25 11:21:36 +0100 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2018-07-25 11:21:36 +0100 |
commit | f7d3054a133247cea1f488993695d3cbb941f29d (patch) | |
tree | 26d2a6cd7f6e9481eeecf6bad8bc1b68e2e19139 /testsuite/tests/module | |
parent | 12c0f03a66bcd978bda6472384ddc0348c5a1d7a (diff) | |
download | haskell-f7d3054a133247cea1f488993695d3cbb941f29d.tar.gz |
Improve error message on un-satisfied import
Consider
import M( C( a,b,c ) )
where class C is defined as
module M where
class C x where
a :: blah
c :: blah
Tnen (Trac #15413) we'd like to get an error message only about
failing to import C( b ), not C( a,b,c ).
This was fairly easy (and local) to do.
Turned out that the existing tests mod81 and mod91 are adequate
tests for the feature.
Diffstat (limited to 'testsuite/tests/module')
-rw-r--r-- | testsuite/tests/module/mod81.stderr | 4 | ||||
-rw-r--r-- | testsuite/tests/module/mod91.stderr | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/testsuite/tests/module/mod81.stderr b/testsuite/tests/module/mod81.stderr index a1cb2f5bcb..0c07e6dfaa 100644 --- a/testsuite/tests/module/mod81.stderr +++ b/testsuite/tests/module/mod81.stderr @@ -1,3 +1,3 @@ -mod81.hs:3:16: - Module ‘Prelude’ does not export ‘Either(Left, Right, Foo)’ +mod81.hs:3:16: error: + Module ‘Prelude’ does not export ‘Either(Foo)’ diff --git a/testsuite/tests/module/mod91.stderr b/testsuite/tests/module/mod91.stderr index 5d8bd0b9ff..6b0a9cc737 100644 --- a/testsuite/tests/module/mod91.stderr +++ b/testsuite/tests/module/mod91.stderr @@ -1,3 +1,2 @@ -mod91.hs:3:16: - Module ‘Prelude’ does not export ‘Eq((==), (/=), eq)’ +mod91.hs:3:16: error: Module ‘Prelude’ does not export ‘Eq(eq)’ |