Fix #13963.
authorRichard Eisenberg <rae@cs.brynmawr.edu>
Wed, 16 Aug 2017 18:33:06 +0000 (14:33 -0400)
committerBen Gamari <ben@smart-cactus.org>
Thu, 14 Sep 2017 19:07:05 +0000 (15:07 -0400)
commit8f99cd67262a67c46ed1af952003486825e0e9f7
treeb477ccca477dc7abda782fd5817b0cf4d665ffc4
parent86e1db7d6850144d6e86dfb33eb0819205f6904c
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.
compiler/iface/IfaceType.hs
compiler/typecheck/TcHsType.hs
compiler/typecheck/TcRnDriver.hs
testsuite/tests/ghci/scripts/T13963.script [new file with mode: 0644]
testsuite/tests/ghci/scripts/T13963.stdout [new file with mode: 0644]
testsuite/tests/ghci/scripts/all.T