summaryrefslogtreecommitdiff
path: root/testsuite/tests/overloadedrecflds/should_fail/T17420.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/overloadedrecflds/should_fail/T17420.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/overloadedrecflds/should_fail/T17420.stderr')
-rw-r--r--testsuite/tests/overloadedrecflds/should_fail/T17420.stderr6
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/tests/overloadedrecflds/should_fail/T17420.stderr b/testsuite/tests/overloadedrecflds/should_fail/T17420.stderr
index 3a94cd5639..3079d44aba 100644
--- a/testsuite/tests/overloadedrecflds/should_fail/T17420.stderr
+++ b/testsuite/tests/overloadedrecflds/should_fail/T17420.stderr
@@ -2,11 +2,11 @@
[2 of 2] Compiling T17420 ( T17420.hs, T17420.o )
T17420.hs:6:17: error: [GHC-87543]
- Ambiguous occurrence ‘name’
+ Ambiguous occurrence ‘name’.
It could refer to
either the field ‘name’ of record ‘Dog’,
imported from ‘T17420A’ at T17420.hs:4:1-14
- (and originally defined at T17420A.hs:4:18-21)
+ (and originally defined at T17420A.hs:4:18-21),
or the field ‘name’ of record ‘Human’,
imported from ‘T17420A’ at T17420.hs:4:1-14
- (and originally defined at T17420A.hs:5:22-25)
+ (and originally defined at T17420A.hs:5:22-25).