Make coreSyn/CoreUtils.lhs compile
authorIan Lynagh <igloo@earth.li>
Thu, 3 May 2007 12:08:41 +0000 (12:08 +0000)
committerIan Lynagh <igloo@earth.li>
Thu, 3 May 2007 12:08:41 +0000 (12:08 +0000)
Use the right number of arguments in a panic case.

compiler/coreSyn/CoreUtils.lhs

index 2433eb8..c72a7b4 100644 (file)
@@ -259,7 +259,8 @@ mkAltExpr (DataAlt con) args inst_tys
   = mkConApp con (map Type inst_tys ++ varsToCoreExprs args)
 mkAltExpr (LitAlt lit) [] []
   = Lit lit
-mkAltExpr DEFAULT = panic "mkAltExpr"
+mkAltExpr (LitAlt _) _ _ = panic "mkAltExpr LitAlt"
+mkAltExpr DEFAULT _ _ = panic "mkAltExpr DEFAULT"
 
 mkIfThenElse :: CoreExpr -> CoreExpr -> CoreExpr -> CoreExpr
 mkIfThenElse guard then_expr else_expr