X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FdeSugar%2FDsListComp.lhs;h=a98aef6b3a2c7584613dbf49d7f43866a2305187;hb=8a2809c29de9f23eba7ca682b48390033a9d40f6;hp=6a25a7555068b8dc5fadd8cdcc1f7096a92f4b62;hpb=dbc5ae8aa41a629151eeb38987e2f5c83a4d7d53;p=ghc-hetmet.git diff --git a/compiler/deSugar/DsListComp.lhs b/compiler/deSugar/DsListComp.lhs index 6a25a75..a98aef6 100644 --- a/compiler/deSugar/DsListComp.lhs +++ b/compiler/deSugar/DsListComp.lhs @@ -21,7 +21,6 @@ import DsMonad -- the monadery used in the desugarer import DsUtils import DynFlags -import StaticFlags import CoreUtils import Var import Type @@ -50,7 +49,7 @@ dsListComp lquals body elt_ty let quals = map unLoc lquals in - if opt_RulesOff || dopt Opt_IgnoreInterfacePragmas dflags + if not (dopt Opt_RewriteRules dflags) || dopt Opt_IgnoreInterfacePragmas dflags -- Either rules are switched off, or we are ignoring what there are; -- Either way foldr/build won't happen, so use the more efficient -- Wadler-style desugaring