X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FdeSugar%2FDsListComp.lhs;h=7fc4fb9654c62d9579a0be8edabbe522bf704841;hb=6a05ec5ef5373f61b7f9f5bdc344483417fa801b;hp=6a25a7555068b8dc5fadd8cdcc1f7096a92f4b62;hpb=dbc5ae8aa41a629151eeb38987e2f5c83a4d7d53;p=ghc-hetmet.git diff --git a/compiler/deSugar/DsListComp.lhs b/compiler/deSugar/DsListComp.lhs index 6a25a75..7fc4fb9 100644 --- a/compiler/deSugar/DsListComp.lhs +++ b/compiler/deSugar/DsListComp.lhs @@ -6,6 +6,13 @@ Desugaring list comprehensions and array comprehensions \begin{code} +{-# OPTIONS -w #-} +-- The above warning supression flag is a temporary kludge. +-- While working on this module you are encouraged to remove it and fix +-- any warnings in the module. See +-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#Warnings +-- for details + module DsListComp ( dsListComp, dsPArrComp ) where #include "HsVersions.h" @@ -21,7 +28,6 @@ import DsMonad -- the monadery used in the desugarer import DsUtils import DynFlags -import StaticFlags import CoreUtils import Var import Type @@ -50,7 +56,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