Refine `noGivenNewtypeReprEqs` to account for quantified constraints
This little MR fixes #26020. We are on the edge of completeness for newtype equalities (that doesn't change) but this MR makes GHC a bit more consistent -- and fixes the bug reported.
Showing
- compiler/GHC/Tc/Solver/Equality.hs 36 additions, 31 deletionscompiler/GHC/Tc/Solver/Equality.hs
- compiler/GHC/Tc/Solver/InertSet.hs 28 additions, 15 deletionscompiler/GHC/Tc/Solver/InertSet.hs
- testsuite/tests/typecheck/should_compile/T26020.hs 17 additions, 0 deletionstestsuite/tests/typecheck/should_compile/T26020.hs
- testsuite/tests/typecheck/should_compile/T26020a.hs 9 additions, 0 deletionstestsuite/tests/typecheck/should_compile/T26020a.hs
- testsuite/tests/typecheck/should_compile/T26020a_help.hs 7 additions, 0 deletionstestsuite/tests/typecheck/should_compile/T26020a_help.hs
- testsuite/tests/typecheck/should_compile/all.T 2 additions, 0 deletionstestsuite/tests/typecheck/should_compile/all.T
Loading
Please register or sign in to comment