Fix a nasty bug in piResultTys
authorSimon Peyton Jones <simonpj@microsoft.com>
Tue, 24 Jul 2018 07:57:34 +0000 (08:57 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Tue, 24 Jul 2018 07:57:34 +0000 (08:57 +0100)
commite1b5a1174e42e390855b153015ce5227b3251d89
treefde15f0774013eb06559da5a5173ec53b0b7803f
parentf0d27f515ffbc476144d1d1dd1a71bf9fa93c94b
Fix a nasty bug in piResultTys

I was failing to instantiate vigorously enough in Type.piResultTys
and in the very similar function ToIface.toIfaceAppArgsX

This caused Trac #15428.  The fix is easy.

See Note [Care with kind instantiation] in Type.hs
compiler/iface/ToIface.hs
compiler/types/Type.hs
testsuite/tests/typecheck/should_compile/T15428.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_compile/all.T