Add exception for `KnownNat` and `KnownSymbol` in super classes.
The situation is similar to `Typeable`---we can't set the evidence outside the solver because we have custom solving rules. This is safe because the computed super-class instances can't possibly depend on the new instance.
Showing
- compiler/typecheck/TcInstDcls.hs 18 additions, 4 deletionscompiler/typecheck/TcInstDcls.hs
- testsuite/tests/typecheck/should_compile/TcCustomSolverSuper.hs 24 additions, 0 deletions...ite/tests/typecheck/should_compile/TcCustomSolverSuper.hs
- testsuite/tests/typecheck/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/typecheck/should_compile/all.T
Loading
Please register or sign in to comment