diff options
author | sheaf <sam.derbyshire@gmail.com> | 2023-05-15 11:06:20 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2023-05-15 14:49:17 -0400 |
commit | 5ae81842d36a6091b406bfce98c60e8a7fa24240 (patch) | |
tree | 97055026d85f6ee1ff9fbdd51a89ec7dae6509d1 /testsuite/tests/module/mod165.stderr | |
parent | e305e60cf507808fa31c456ef98295f8f7d00c9d (diff) | |
download | haskell-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/mod165.stderr')
-rw-r--r-- | testsuite/tests/module/mod165.stderr | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testsuite/tests/module/mod165.stderr b/testsuite/tests/module/mod165.stderr index 9ef57d4bbd..be092c086e 100644 --- a/testsuite/tests/module/mod165.stderr +++ b/testsuite/tests/module/mod165.stderr @@ -1,7 +1,7 @@ -mod165.hs:9:5: [GHC-87543] - Ambiguous occurrence ‘A.D1’ - It could refer to either ‘A.D1’, - imported from ‘Mod164_A’ at mod165.hs:4:1-20 - or ‘A.D1’, imported from ‘Mod164_B’ at mod165.hs:5:1-20 +mod165.hs:9:5: error: [GHC-87543] + Ambiguous occurrence ‘A.D1’. + It could refer to + either ‘A.D1’, imported from ‘Mod164_A’ at mod165.hs:4:1-20, + or ‘A.D1’, imported from ‘Mod164_B’ at mod165.hs:5:1-20. exit(1) |