Default kind vars in tyfams with -XNoPolyKinds
We should still default kind variables in type families in the presence of -XNoPolyKinds, to avoid suggesting enabling -XPolyKinds just because the function arrow introduced kind variables, e.g. type family F (t :: Type) :: Type where F (a -> b) = b With -XNoPolyKinds, we should still default `r :: RuntimeRep` in `a :: TYPE r`. Fixes #20584
Showing
- compiler/GHC/Iface/Type.hs 12 additions, 14 deletionscompiler/GHC/Iface/Type.hs
- compiler/GHC/Tc/Gen/HsType.hs 3 additions, 3 deletionscompiler/GHC/Tc/Gen/HsType.hs
- compiler/GHC/Tc/Gen/Rule.hs 2 additions, 2 deletionscompiler/GHC/Tc/Gen/Rule.hs
- compiler/GHC/Tc/Solver.hs 7 additions, 5 deletionscompiler/GHC/Tc/Solver.hs
- compiler/GHC/Tc/TyCl.hs 2 additions, 2 deletionscompiler/GHC/Tc/TyCl.hs
- compiler/GHC/Tc/TyCl/Instance.hs 1 addition, 1 deletioncompiler/GHC/Tc/TyCl/Instance.hs
- compiler/GHC/Tc/Utils/TcMType.hs 51 additions, 31 deletionscompiler/GHC/Tc/Utils/TcMType.hs
- compiler/GHC/Types/Basic.hs 122 additions, 50 deletionscompiler/GHC/Types/Basic.hs
- compiler/MachDeps.h 119 additions, 0 deletionscompiler/MachDeps.h
- testsuite/tests/indexed-types/should_compile/T17536.hs 1 addition, 1 deletiontestsuite/tests/indexed-types/should_compile/T17536.hs
- testsuite/tests/indexed-types/should_compile/T17536c.hs 17 additions, 0 deletionstestsuite/tests/indexed-types/should_compile/T17536c.hs
- testsuite/tests/indexed-types/should_compile/all.T 1 addition, 0 deletionstestsuite/tests/indexed-types/should_compile/all.T
- testsuite/tests/typecheck/should_compile/T20584.hs 12 additions, 0 deletionstestsuite/tests/typecheck/should_compile/T20584.hs
- testsuite/tests/typecheck/should_compile/T20584b.hs 24 additions, 0 deletionstestsuite/tests/typecheck/should_compile/T20584b.hs
- testsuite/tests/typecheck/should_compile/all.T 2 additions, 0 deletionstestsuite/tests/typecheck/should_compile/all.T
Loading
Please register or sign in to comment