From e94c2e25c29caa047e7987eb8a51251c65451ec0 Mon Sep 17 00:00:00 2001 From: simonpj Date: Mon, 9 Sep 2002 13:48:35 +0000 Subject: [PATCH] [project @ 2002-09-09 13:48:35 by simonpj] Correction to earlier commit.. *now* those rank-2 pattern matches should work MERGE TO STABLE --- ghc/compiler/typecheck/TcPat.lhs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghc/compiler/typecheck/TcPat.lhs b/ghc/compiler/typecheck/TcPat.lhs index 291d854..a7846d4 100644 --- a/ghc/compiler/typecheck/TcPat.lhs +++ b/ghc/compiler/typecheck/TcPat.lhs @@ -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, -- 1.7.10.4