summaryrefslogtreecommitdiff
path: root/testsuite/tests/module/mod153.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/mod153.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/mod153.stderr')
-rw-r--r--testsuite/tests/module/mod153.stderr11
1 files changed, 6 insertions, 5 deletions
diff --git a/testsuite/tests/module/mod153.stderr b/testsuite/tests/module/mod153.stderr
index 989b27a77e..7d71dbcd0a 100644
--- a/testsuite/tests/module/mod153.stderr
+++ b/testsuite/tests/module/mod153.stderr
@@ -1,7 +1,8 @@
mod153.hs:2:11: error: [GHC-87543]
- Ambiguous occurrence ‘id’
- It could refer to either ‘Prelude.id’,
- imported from ‘Prelude’ at mod153.hs:2:8
- (and originally defined in ‘GHC.Base’)
- or ‘M.id’, defined at mod153.hs:2:21
+ Ambiguous occurrence ‘id’.
+ It could refer to
+ either ‘Prelude.id’,
+ imported from ‘Prelude’ at mod153.hs:2:8
+ (and originally defined in ‘GHC.Base’),
+ or ‘M.id’, defined at mod153.hs:2:21.