Do not quantify over deriving clauses
Trac #14331 showed that in a data type decl like data D = D deriving (C (a :: k)) we were quantifying D over the 'k' in the deriving clause. Yikes. Easily fixed, by deleting code in RnTypes.extractDataDefnKindVars See the discussion on the ticket, esp comment:8.
Showing
- compiler/rename/RnTypes.hs 13 additions, 9 deletionscompiler/rename/RnTypes.hs
- testsuite/tests/deriving/should_compile/T14331.hs 10 additions, 0 deletionstestsuite/tests/deriving/should_compile/T14331.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