[project @ 2002-09-09 13:48:35 by simonpj]
authorsimonpj <unknown>
Mon, 9 Sep 2002 13:48:35 +0000 (13:48 +0000)
committersimonpj <unknown>
Mon, 9 Sep 2002 13:48:35 +0000 (13:48 +0000)
Correction to earlier commit.. *now* those rank-2 pattern matches should work

MERGE TO STABLE

ghc/compiler/typecheck/TcPat.lhs

index 291d854..a7846d4 100644 (file)
@@ -422,7 +422,7 @@ tcConPat tc_bndr pat con_name arg_pats pat_ty
        -- Check arguments
     tcPats tc_bndr arg_pats arg_tys    `thenTc` \ (arg_pats', lie_req3, tvs, ids, lie_avail2) ->
 
-    returnTc (co_fn <$> ConPat data_con pat_ty ex_tvs ex_dicts arg_pats',
+    returnTc (co_fn <$> ConPat data_con con_res_ty ex_tvs ex_dicts arg_pats',
              lie_req1 `plusLIE` lie_req2 `plusLIE` lie_req3,
              listToBag ex_tvs `unionBags` tvs,
              ids,