fix haddock submodule pointer
[ghc-hetmet.git] / compiler / typecheck / TcMatches.lhs
index 48fdf77..29890a2 100644 (file)
@@ -30,7 +30,7 @@ import TysWiredIn
 import Id
 import TyCon
 import TysPrim
-import Coercion                ( isIdentityCoI, mkSymCoI )
+import Coercion         ( isReflCo, mkSymCo )
 import Outputable
 import Util
 import SrcLoc
@@ -147,7 +147,7 @@ matchFunTys
 matchFunTys herald arity res_ty thing_inside
   = do { (coi, pat_tys, res_ty) <- matchExpectedFunTys herald arity res_ty
        ; res <- thing_inside pat_tys res_ty
-        ; return (coiToHsWrapper (mkSymCoI coi), res) }
+        ; return (coToHsWrapper (mkSymCo coi), res) }
 \end{code}
 
 %************************************************************************
@@ -248,13 +248,13 @@ tcDoStmts ListComp stmts res_ty
   = do { (coi, elt_ty) <- matchExpectedListTy res_ty
         ; let list_ty = mkListTy elt_ty
        ; stmts' <- tcStmts ListComp (tcLcStmt listTyCon) stmts elt_ty
-       ; return $ mkHsWrapCoI coi (HsDo ListComp stmts' list_ty) }
+       ; return $ mkHsWrapCo coi (HsDo ListComp stmts' list_ty) }
 
 tcDoStmts PArrComp stmts res_ty
   = do { (coi, elt_ty) <- matchExpectedPArrTy res_ty
         ; let parr_ty = mkPArrTy elt_ty
        ; stmts' <- tcStmts PArrComp (tcLcStmt parrTyCon) stmts elt_ty
-       ; return $ mkHsWrapCoI coi (HsDo PArrComp stmts' parr_ty) }
+       ; return $ mkHsWrapCo coi (HsDo PArrComp stmts' parr_ty) }
 
 tcDoStmts DoExpr stmts res_ty
   = do { stmts' <- tcStmts DoExpr tcDoStmt stmts res_ty
@@ -730,7 +730,7 @@ tcMcStmt ctxt (ParStmt bndr_stmts_s mzip_op bind_op return_op) res_ty thing_insi
        -- so for now we just check that it's the identity
     check_same actual expected
       = do { coi <- unifyType actual expected
-          ; unless (isIdentityCoI coi) $
+          ; unless (isReflCo coi) $
              failWithMisMatch [UnifyOrigin { uo_expected = expected
                                            , uo_actual = actual }] }