Fix computation of dfun_tvs in mkNewTypeEqn
This bug was causing Trac #13297. We were recomputing ds_tvs, and doing it wrongly (by omitting variables that appear only in mtheta). But actually plain 'tvs' is just fine. So code deleted, and bug fixed.
Showing
- compiler/typecheck/TcDeriv.hs 3 additions, 4 deletionscompiler/typecheck/TcDeriv.hs
- testsuite/tests/deriving/should_compile/T13297.hs 9 additions, 0 deletionstestsuite/tests/deriving/should_compile/T13297.hs
- testsuite/tests/deriving/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/deriving/should_compile/all.T
Loading
Please register or sign in to comment