X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FdeSugar%2FDsGRHSs.lhs;h=24086a27468c879d42e29969efd6a3ae4a884b49;hb=96ba2fb23b315e625d2edbdfb62522ffe5732261;hp=683dd2197e22e8304a03704eaa32e461c0c07835;hpb=11b9d006fe5f38742f2f91ac1c0b872c2565208d;p=ghc-hetmet.git diff --git a/compiler/deSugar/DsGRHSs.lhs b/compiler/deSugar/DsGRHSs.lhs index 683dd21..24086a2 100644 --- a/compiler/deSugar/DsGRHSs.lhs +++ b/compiler/deSugar/DsGRHSs.lhs @@ -15,8 +15,6 @@ Matching guarded right-hand-sides (GRHSs) module DsGRHSs ( dsGuarded, dsGRHSs ) where --- XXX This define is a bit of a hack, and should be done more nicely -#define FAST_STRING_NOT_NEEDED 1 #include "HsVersions.h" import {-# SOURCE #-} DsExpr ( dsLExpr, dsLocalBinds ) @@ -34,7 +32,7 @@ import TysWiredIn import PrelNames import Name import SrcLoc - +import Outputable \end{code} @dsGuarded@ is used for both @case@ expressions and pattern bindings. @@ -53,7 +51,7 @@ dsGuarded :: GRHSs Id -> Type -> DsM CoreExpr dsGuarded grhss rhs_ty = do match_result <- dsGRHSs PatBindRhs [] grhss rhs_ty - error_expr <- mkErrorAppDs nON_EXHAUSTIVE_GUARDS_ERROR_ID rhs_ty "" + error_expr <- mkErrorAppDs nON_EXHAUSTIVE_GUARDS_ERROR_ID rhs_ty empty extractMatchResult match_result error_expr \end{code}