Fix build
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 6 May 2011 17:07:36 +0000 (18:07 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 6 May 2011 17:07:36 +0000 (18:07 +0100)
compiler/typecheck/TcMatches.lhs

index ce6c2fc..29890a2 100644 (file)
@@ -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
        -- 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 }] }
 
              failWithMisMatch [UnifyOrigin { uo_expected = expected
                                            , uo_actual = actual }] }