summaryrefslogtreecommitdiff
path: root/testsuite/tests/module/mod110.stderr
diff options
context:
space:
mode:
authorsheaf <sam.derbyshire@gmail.com>2023-05-15 11:06:20 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-05-15 14:49:17 -0400
commit5ae81842d36a6091b406bfce98c60e8a7fa24240 (patch)
tree97055026d85f6ee1ff9fbdd51a89ec7dae6509d1 /testsuite/tests/module/mod110.stderr
parente305e60cf507808fa31c456ef98295f8f7d00c9d (diff)
downloadhaskell-5ae81842d36a6091b406bfce98c60e8a7fa24240.tar.gz
Improve "ambiguous occurrence" error messages
This error was sometimes a bit confusing, especially when data families were involved. This commit improves the general presentation of the "ambiguous occurrence" error, and adds a bit of extra context in the case of data families. Fixes #23301
Diffstat (limited to 'testsuite/tests/module/mod110.stderr')
-rw-r--r--testsuite/tests/module/mod110.stderr11
1 files changed, 6 insertions, 5 deletions
diff --git a/testsuite/tests/module/mod110.stderr b/testsuite/tests/module/mod110.stderr
index 38e9c79a54..97f7eedadb 100644
--- a/testsuite/tests/module/mod110.stderr
+++ b/testsuite/tests/module/mod110.stderr
@@ -1,7 +1,8 @@
mod110.hs:11:10: error: [GHC-87543]
- Ambiguous occurrence ‘Eq’
- It could refer to either ‘Prelude.Eq’,
- imported from ‘Prelude’ at mod110.hs:4:1-14
- (and originally defined in ‘GHC.Classes’)
- or ‘M.Eq’, defined at mod110.hs:7:1
+ Ambiguous occurrence ‘Eq’.
+ It could refer to
+ either ‘Prelude.Eq’,
+ imported from ‘Prelude’ at mod110.hs:4:1-14
+ (and originally defined in ‘GHC.Classes’),
+ or ‘M.Eq’, defined at mod110.hs:7:1.