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
Showing
- compiler/GHC/Rename/Utils.hs 7 additions, 4 deletionscompiler/GHC/Rename/Utils.hs
- compiler/GHC/Tc/Errors/Ppr.hs 44 additions, 15 deletionscompiler/GHC/Tc/Errors/Ppr.hs
- compiler/GHC/Tc/Errors/Types.hs 2 additions, 1 deletioncompiler/GHC/Tc/Errors/Types.hs
- compiler/GHC/Tc/Module.hs 2 additions, 1 deletioncompiler/GHC/Tc/Module.hs
- compiler/GHC/Utils/Outputable.hs 18 additions, 3 deletionscompiler/GHC/Utils/Outputable.hs
- testsuite/tests/module/mod110.stderr 6 additions, 5 deletionstestsuite/tests/module/mod110.stderr
- testsuite/tests/module/mod151.stderr 6 additions, 5 deletionstestsuite/tests/module/mod151.stderr
- testsuite/tests/module/mod152.stderr 6 additions, 5 deletionstestsuite/tests/module/mod152.stderr
- testsuite/tests/module/mod153.stderr 6 additions, 5 deletionstestsuite/tests/module/mod153.stderr
- testsuite/tests/module/mod164.stderr 9 additions, 8 deletionstestsuite/tests/module/mod164.stderr
- testsuite/tests/module/mod165.stderr 5 additions, 5 deletionstestsuite/tests/module/mod165.stderr
- testsuite/tests/overloadedrecflds/ghci/GHCiDRF.stdout 13 additions, 13 deletionstestsuite/tests/overloadedrecflds/ghci/GHCiDRF.stdout
- testsuite/tests/overloadedrecflds/ghci/duplicaterecfldsghci01.stdout 5 additions, 3 deletions...ests/overloadedrecflds/ghci/duplicaterecfldsghci01.stdout
- testsuite/tests/overloadedrecflds/should_compile/BootFldReexport.stderr 3 additions, 3 deletions...s/overloadedrecflds/should_compile/BootFldReexport.stderr
- testsuite/tests/overloadedrecflds/should_fail/DRFUnused.stderr 7 additions, 4 deletions...uite/tests/overloadedrecflds/should_fail/DRFUnused.stderr
- testsuite/tests/overloadedrecflds/should_fail/NoFieldSelectorsFail.stderr 3 additions, 3 deletions...overloadedrecflds/should_fail/NoFieldSelectorsFail.stderr
- testsuite/tests/overloadedrecflds/should_fail/T11167_ambiguous_fixity.stderr 4 additions, 4 deletions...rloadedrecflds/should_fail/T11167_ambiguous_fixity.stderr
- testsuite/tests/overloadedrecflds/should_fail/T13132_duplicaterecflds.stderr 6 additions, 6 deletions...rloadedrecflds/should_fail/T13132_duplicaterecflds.stderr
- testsuite/tests/overloadedrecflds/should_fail/T16745.stderr 3 additions, 3 deletionstestsuite/tests/overloadedrecflds/should_fail/T16745.stderr
- testsuite/tests/overloadedrecflds/should_fail/T17420.stderr 3 additions, 3 deletionstestsuite/tests/overloadedrecflds/should_fail/T17420.stderr
Loading
Please register or sign in to comment