Fix #8631.
This patch allows turning on ImpredicativeTypes while type-checking the code generated by GeneralizedNewtypeDeriving. It does this by adding a field ib_extensions to InstBindings, informing the type-checker what extensions should be enabled while type-checking the instance. (cherry picked from commit 674c969c)
Showing
- compiler/typecheck/TcDeriv.lhs 10 additions, 5 deletionscompiler/typecheck/TcDeriv.lhs
- compiler/typecheck/TcEnv.lhs 4 additions, 0 deletionscompiler/typecheck/TcEnv.lhs
- compiler/typecheck/TcGenGenerics.lhs 3 additions, 0 deletionscompiler/typecheck/TcGenGenerics.lhs
- compiler/typecheck/TcInstDcls.lhs 6 additions, 1 deletioncompiler/typecheck/TcInstDcls.lhs
- testsuite/tests/deriving/should_run/T8631.hs 22 additions, 0 deletionstestsuite/tests/deriving/should_run/T8631.hs
- testsuite/tests/deriving/should_run/all.T 1 addition, 1 deletiontestsuite/tests/deriving/should_run/all.T
testsuite/tests/deriving/should_run/T8631.hs
0 → 100644
Please register or sign in to comment