From 252ea4fa9b6263e483690403ba0eaebb643e13ee Mon Sep 17 00:00:00 2001 From: "simonpj@microsoft.com" Date: Mon, 13 Sep 2010 17:04:07 +0000 Subject: [PATCH 1/1] Improve crash message --- compiler/typecheck/TcMatches.lhs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/typecheck/TcMatches.lhs b/compiler/typecheck/TcMatches.lhs index 255d97b..6080533 100644 --- a/compiler/typecheck/TcMatches.lhs +++ b/compiler/typecheck/TcMatches.lhs @@ -653,6 +653,6 @@ checkArgs fun (MatchGroup (match1:matches) _) args_in_match :: LMatch Name -> Int args_in_match (L _ (Match pats _ _)) = length pats -checkArgs _ _ = panic "TcPat.checkArgs" -- Matches always non-empty +checkArgs fun _ = pprPanic "TcPat.checkArgs" (ppr fun) -- Matches always non-empty \end{code} -- 1.7.10.4