[commit: ghc] master: Improve error message on un-satisfied import (f7d3054)
git at git.haskell.org
git at git.haskell.org
Wed Jul 25 11:26:01 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/f7d3054a133247cea1f488993695d3cbb941f29d/ghc
>---------------------------------------------------------------
commit f7d3054a133247cea1f488993695d3cbb941f29d
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date: Wed Jul 25 11:21:36 2018 +0100
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.
>---------------------------------------------------------------
f7d3054a133247cea1f488993695d3cbb941f29d
compiler/rename/RnNames.hs | 79 ++++++++++++++++++++++---------------
testsuite/tests/module/mod81.stderr | 4 +-
testsuite/tests/module/mod91.stderr | 3 +-
3 files changed, 51 insertions(+), 35 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 f7d3054a133247cea1f488993695d3cbb941f29d
More information about the ghc-commits
mailing list