X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FdeSugar%2FDsListComp.lhs;h=ccc1a7bb34f4f86d4a7f0de8511e7706d31fe076;hb=5943ce90c9c9d4319eec3cfe1fb3315f018e1c45;hp=6a25a7555068b8dc5fadd8cdcc1f7096a92f4b62;hpb=dbc5ae8aa41a629151eeb38987e2f5c83a4d7d53;p=ghc-hetmet.git diff --git a/compiler/deSugar/DsListComp.lhs b/compiler/deSugar/DsListComp.lhs index 6a25a75..ccc1a7b 100644 --- a/compiler/deSugar/DsListComp.lhs +++ b/compiler/deSugar/DsListComp.lhs @@ -50,7 +50,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