From 065e27a7e59c9740f506756f7fd52a6dbd9003bf Mon Sep 17 00:00:00 2001 From: sof Date: Mon, 1 Jun 1998 12:27:37 +0000 Subject: [PATCH] [project @ 1998-06-01 12:27:37 by sof] fun_result_ty: added extra alt. to catch&report pattern matching failures --- ghc/compiler/codeGen/ClosureInfo.lhs | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 1.7.10.4