X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FcoreSyn%2FCoreLint.lhs;h=031fd613ccc990fd1fba9e50842290d6ecebd1e3;hp=28e09ae40f66b6c187efd2ece71fdc6f09cc8755;hb=c8c2f6bb7d79a2a6aeaa3233363fdf0bbbfad205;hpb=fdf8656855d26105ff36bdd24d41827b05037b91 diff --git a/compiler/coreSyn/CoreLint.lhs b/compiler/coreSyn/CoreLint.lhs index 28e09ae..031fd61 100644 --- a/compiler/coreSyn/CoreLint.lhs +++ b/compiler/coreSyn/CoreLint.lhs @@ -646,20 +646,6 @@ lintCoercion (ForAllCo v co) ; (s,t) <- addInScopeVar v (lintCoercion co) ; return (ForAllTy v s, ForAllTy v t) } -lintCoercion co@(PredCo (ClassP cls cos)) - = do { (ss,ts) <- mapAndUnzipM lintCoercion cos - ; check_co_app co (tyConKind (classTyCon cls)) ss - ; return (PredTy (ClassP cls ss), PredTy (ClassP cls ts)) } - -lintCoercion (PredCo (IParam ip co)) - = do { (s,t) <- lintCoercion co - ; return (PredTy (IParam ip s), PredTy (IParam ip t)) } - -lintCoercion (PredCo (EqPred c1 c2)) - = do { (s1,t1) <- lintCoercion c1 - ; (s2,t2) <- lintCoercion c2 - ; return (PredTy (EqPred s1 s2), PredTy (EqPred t1 t2)) } - lintCoercion (CoVarCo cv) = do { checkTyCoVarInScope cv ; return (coVarKind cv) }