summaryrefslogtreecommitdiff
path: root/testsuite/tests/overloadedrecflds/should_fail/T18999_NoDisambiguateRecordFields.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/T18999_NoDisambiguateRecordFields.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/T18999_NoDisambiguateRecordFields.stderr')
-rw-r--r--testsuite/tests/overloadedrecflds/should_fail/T18999_NoDisambiguateRecordFields.stderr6
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/tests/overloadedrecflds/should_fail/T18999_NoDisambiguateRecordFields.stderr b/testsuite/tests/overloadedrecflds/should_fail/T18999_NoDisambiguateRecordFields.stderr
index 7e7939e028..a54338cbf0 100644
--- a/testsuite/tests/overloadedrecflds/should_fail/T18999_NoDisambiguateRecordFields.stderr
+++ b/testsuite/tests/overloadedrecflds/should_fail/T18999_NoDisambiguateRecordFields.stderr
@@ -1,12 +1,12 @@
T18999_NoDisambiguateRecordFields.hs:6:13: error: [GHC-87543]
- Ambiguous occurrence ‘not’
+ Ambiguous occurrence ‘not’.
It could refer to
either ‘Prelude.not’,
imported from ‘Prelude’ at T18999_NoDisambiguateRecordFields.hs:2:8-40
- (and originally defined in ‘GHC.Classes’)
+ (and originally defined in ‘GHC.Classes’),
or the field ‘not’ of record ‘Foo’,
- defined at T18999_NoDisambiguateRecordFields.hs:4:18
+ defined at T18999_NoDisambiguateRecordFields.hs:4:18.
T18999_NoDisambiguateRecordFields.hs:8:11: error: [GHC-56428]
Ambiguous record field ‘not’.