Add assertion checks for mkCoVar/mkTyVar
authorsimonpj@microsoft.com <unknown>
Fri, 13 Oct 2006 16:24:34 +0000 (16:24 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 13 Oct 2006 16:24:34 +0000 (16:24 +0000)
commitac704fcac946590eef0ec91ae19f3b47d779a75f
treef93958e109b052b48ee780c0ee4372a0e655fce7
parent28d732c362e13e58d653b3dc15fd376c3f0c54c2
Add assertion checks for mkCoVar/mkTyVar

A type variable has a flag saying whether it is a *type* variable or
a *coercion* variable.  This patch adds assertions to check the flag.

And it adds fixes to places which were Wrong (and hence fired the
assertion)!

Also removed isCoVar from Coercion, since it's done by Var.isCoVar.
compiler/basicTypes/Var.lhs
compiler/coreSyn/CoreUtils.lhs
compiler/iface/TcIface.lhs
compiler/simplCore/SimplUtils.lhs
compiler/typecheck/Inst.lhs
compiler/types/Coercion.lhs
compiler/types/Type.lhs
compiler/types/TypeRep.lhs
compiler/types/TypeRep.lhs-boot