import Inst ( Inst, InstOrigin(..), SYN_IE(LIE), plusLIE,
newDicts, tyVarsOfInst, instToId )
import TcEnv ( tcGetGlobalTyVars, tcExtendGlobalTyVars )
+import SpecEnv ( SpecEnv )
import TcSimplify ( tcSimplify, tcSimplifyAndCheck )
import TcType ( SYN_IE(TcType), SYN_IE(TcThetaType), SYN_IE(TcTauType),
SYN_IE(TcTyVarSet), SYN_IE(TcTyVar),
unresolved_kind_tyvars = filter (isTypeKind . tyVarKind) tyvars
box_it tyvar = newTyVarTy mkBoxedTypeKind `thenNF_Tc` \ boxed_ty ->
- unifyTauTy (mkTyVarTy tyvar) boxed_ty
+ unifyTauTy boxed_ty (mkTyVarTy tyvar)
in
ASSERT( null unboxed_kind_tyvars ) -- The instCantBeGeneralised stuff in tcSimplify