From: simonpj@microsoft.com Date: Mon, 5 Nov 2007 16:12:17 +0000 (+0000) Subject: Make CoreLint give a more informative error message X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=565ccc310f52cca11b2eb610e96e45abfb8f3a18;p=ghc-hetmet.git Make CoreLint give a more informative error message --- diff --git a/compiler/coreSyn/CoreLint.lhs b/compiler/coreSyn/CoreLint.lhs index 07e1284..298c150 100644 --- a/compiler/coreSyn/CoreLint.lhs +++ b/compiler/coreSyn/CoreLint.lhs @@ -366,8 +366,8 @@ lintCoreExpr e@(Case scrut var alt_ty alts) = else lintAndScopeId var ; scope $ \_ -> do { -- Check the alternatives - checkCaseAlts e scrut_ty alts - ; mapM (lintCoreAlt scrut_ty alt_ty) alts + mapM (lintCoreAlt scrut_ty alt_ty) alts + ; checkCaseAlts e scrut_ty alts ; return alt_ty } } where pass_var f = f var