Fix tcDataKindSig
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 15 Dec 2017 09:29:12 +0000 (09:29 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 15 Dec 2017 11:22:11 +0000 (11:22 +0000)
commit68149452a793aedd8d468b689dc93fb2ba5ec436
treefee1cd287c77a415e55a47998db3a482b701317a
parent4a331e659f636e28330142b6df90cb0772a19463
Fix tcDataKindSig

This patch fixes an outright bug in tcDataKindSig, shown up in Trac
of a data type declaration.  See Note [TyConBinders for the result kind
signature of a data type]

I also took the opportunity to elminate the DataKindCheck argument
and data type from tcDataKindSig, instead moving the check to the
call site, which is easier to understand.
compiler/typecheck/TcHsType.hs
compiler/typecheck/TcInstDcls.hs
compiler/typecheck/TcTyClsDecls.hs
compiler/types/Type.hs
testsuite/tests/ghci/scripts/T13407.stdout
testsuite/tests/polykinds/T14515.hs [new file with mode: 0644]
testsuite/tests/polykinds/all.T