[feat] add a hint to `HasField` error message
- add a hint that indicates that the record that the record dot is used on might just be missing a field - as the intention of the programmer is not entirely clear, it is only shown if the type is known - This addresses in part issue #22382
Showing
- compiler/GHC/Tc/Errors.hs 26 additions, 6 deletionscompiler/GHC/Tc/Errors.hs
- compiler/GHC/Types/Hint.hs 5 additions, 2 deletionscompiler/GHC/Types/Hint.hs
- compiler/GHC/Types/Hint/Ppr.hs 7 additions, 0 deletionscompiler/GHC/Types/Hint/Ppr.hs
- testsuite/tests/parser/should_fail/RecordDotSyntaxFail8.stderr 1 addition, 0 deletions...uite/tests/parser/should_fail/RecordDotSyntaxFail8.stderr
Loading
Please register or sign in to comment