X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=compiler%2FsimplStg%2FSimplStg.lhs;h=e31415b2f54d95e9b5d6af59eadbf3c4a849ffd1;hb=30c122df62ec75f9ed7f392f24c2925675bf1d06;hp=072737a92298ea087afb8bad36350e0cae29d2a9;hpb=17b297d97d327620ed6bfab942f8992b2446f1bf;p=ghc-hetmet.git diff --git a/compiler/simplStg/SimplStg.lhs b/compiler/simplStg/SimplStg.lhs index 072737a..e31415b 100644 --- a/compiler/simplStg/SimplStg.lhs +++ b/compiler/simplStg/SimplStg.lhs @@ -4,13 +4,6 @@ \section[SimplStg]{Driver for simplifying @STG@ programs} \begin{code} -{-# OPTIONS_GHC -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/WorkingConventions#Warnings --- for details - module SimplStg ( stg2stg ) where #include "HsVersions.h" @@ -63,7 +56,7 @@ stg2stg dflags module_name binds where stg_linter = if dopt Opt_DoStgLinting dflags then lintStgBindings - else ( \ whodunnit binds -> binds ) + else ( \ _whodunnit binds -> binds ) ------------------------------------------- do_stg_pass (binds, us, ccs) to_do @@ -96,7 +89,8 @@ stg2stg dflags module_name binds -- add to description of what's happened (reverse order) -- here so it can be inlined... -foldl_mn f z [] = return z +foldl_mn :: (b -> a -> IO b) -> b -> [a] -> IO b +foldl_mn _ z [] = return z foldl_mn f z (x:xs) = f z x >>= \ zz -> foldl_mn f zz xs \end{code}