From a6590d2197b48f7eedee610a95d262d43b517f49 Mon Sep 17 00:00:00 2001 From: "simonpj@microsoft.com" Date: Sat, 23 Sep 2006 04:28:29 +0000 Subject: [PATCH] Correct crucial typo in isSubKind (kc1 -> kc2)! --- compiler/types/Type.lhs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/types/Type.lhs b/compiler/types/Type.lhs index 0d7767b..bad6144 100644 --- a/compiler/types/Type.lhs +++ b/compiler/types/Type.lhs @@ -1430,7 +1430,7 @@ isKind k = isSuperKind (typeKind k) isSubKind :: Kind -> Kind -> Bool -- (k1 `isSubKind` k2) checks that k1 <: k2 -isSubKind (TyConApp kc1 []) (TyConApp kc2 []) = kc1 `isSubKindCon` kc1 +isSubKind (TyConApp kc1 []) (TyConApp kc2 []) = kc1 `isSubKindCon` kc2 isSubKind (FunTy a1 r1) (FunTy a2 r2) = (a2 `isSubKind` a1) && (r1 `isSubKind` r2) isSubKind (PredTy (EqPred ty1 ty2)) (PredTy (EqPred ty1' ty2')) = ty1 `tcEqType` ty1' && ty2 `tcEqType` ty2' -- 1.7.10.4