Fix SigTvs at the kind level
This patch fixes two bugs in the treatment of SigTvs at the kind level: - We should always generalise them, never default them (Trac #14555, #14563) - We should check if they get unified with each other (Trac #11203) Both are described in TcHsType Note [Kind generalisation and SigTvs] (cherry picked from commit 8361b2c5)
Showing
- compiler/typecheck/TcBinds.hs 9 additions, 11 deletionscompiler/typecheck/TcBinds.hs
- compiler/typecheck/TcHsType.hs 59 additions, 17 deletionscompiler/typecheck/TcHsType.hs
- compiler/typecheck/TcMType.hs 21 additions, 9 deletionscompiler/typecheck/TcMType.hs
- compiler/typecheck/TcSimplify.hs 3 additions, 0 deletionscompiler/typecheck/TcSimplify.hs
- compiler/typecheck/TcTyClsDecls.hs 63 additions, 13 deletionscompiler/typecheck/TcTyClsDecls.hs
- compiler/typecheck/TcType.hs 17 additions, 1 deletioncompiler/typecheck/TcType.hs
- compiler/types/TyCon.hs 7 additions, 49 deletionscompiler/types/TyCon.hs
- testsuite/tests/polykinds/T11203.hs 7 additions, 0 deletionstestsuite/tests/polykinds/T11203.hs
- testsuite/tests/polykinds/T11203.stderr 4 additions, 0 deletionstestsuite/tests/polykinds/T11203.stderr
- testsuite/tests/polykinds/T11821a.stderr 4 additions, 0 deletionstestsuite/tests/polykinds/T11821a.stderr
- testsuite/tests/polykinds/T14555.hs 12 additions, 0 deletionstestsuite/tests/polykinds/T14555.hs
- testsuite/tests/polykinds/T14555.stderr 6 additions, 0 deletionstestsuite/tests/polykinds/T14555.stderr
- testsuite/tests/polykinds/T14563.hs 9 additions, 0 deletionstestsuite/tests/polykinds/T14563.hs
- testsuite/tests/polykinds/T14563.stderr 7 additions, 0 deletionstestsuite/tests/polykinds/T14563.stderr
- testsuite/tests/polykinds/all.T 5 additions, 1 deletiontestsuite/tests/polykinds/all.T
Loading
Please register or sign in to comment