From: sof Date: Mon, 1 Jun 1998 12:27:37 +0000 (+0000) Subject: [project @ 1998-06-01 12:27:37 by sof] X-Git-Tag: Approx_2487_patches~640 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=065e27a7e59c9740f506756f7fd52a6dbd9003bf;p=ghc-hetmet.git [project @ 1998-06-01 12:27:37 by sof] fun_result_ty: added extra alt. to catch&report pattern matching failures --- diff --git a/ghc/compiler/codeGen/ClosureInfo.lhs b/ghc/compiler/codeGen/ClosureInfo.lhs index db6a9da..1e438e3 100644 --- a/ghc/compiler/codeGen/ClosureInfo.lhs +++ b/ghc/compiler/codeGen/ClosureInfo.lhs @@ -1133,6 +1133,10 @@ fun_result_ty arity ty -> fun_result_ty (arity - n_arg_tys) rep_ty where ([rep_ty], _) = splitFunTys (applyTys (idType con) tycon_arg_tys) + Just _ -> + pprPanic "fun_result_ty:" (hsep [int arity, + ppr ty, + ppr res_ty]) where (_, rho_ty) = splitForAllTys ty (arg_tys, res_ty) = splitFunTys rho_ty