Fix #13963.
This commit fixes several things: 1. RuntimeRep arg suppression was overeager for *visibly*-quantified RuntimeReps, which should remain. 2. The choice of whether to used a Named TyConBinder or an anonymous was sometimes wrong. Now, we do an extra little pass right before constructing the tycon to fix these. 3. TyCons that normally cannot appear unsaturated can appear unsaturated in :kind. But this fact was not propagated into the type checker. It now is.
Showing
- compiler/iface/IfaceType.hs 3 additions, 1 deletioncompiler/iface/IfaceType.hs
- compiler/typecheck/TcHsType.hs 55 additions, 8 deletionscompiler/typecheck/TcHsType.hs
- compiler/typecheck/TcRnDriver.hs 1 addition, 1 deletioncompiler/typecheck/TcRnDriver.hs
- testsuite/tests/ghci/scripts/T13963.script 9 additions, 0 deletionstestsuite/tests/ghci/scripts/T13963.script
- testsuite/tests/ghci/scripts/T13963.stdout 4 additions, 0 deletionstestsuite/tests/ghci/scripts/T13963.stdout
- testsuite/tests/ghci/scripts/all.T 1 addition, 0 deletionstestsuite/tests/ghci/scripts/all.T
Loading
Please register or sign in to comment