[commit: ghc] new-demand-to-merge: cleanup (09c49d3)

Ilya Sergey <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : new-demand-to-merge

http://hackage.haskell.org/trac/ghc/changeset/09c49d31312980ba5ae0ae8613dfbf5e684a104e

>---------------------------------------------------------------

commit 09c49d31312980ba5ae0ae8613dfbf5e684a104e
Author: Ilya Sergey <[email protected]>
Date:   Tue Oct 30 13:21:55 2012 +0100

    cleanup

>---------------------------------------------------------------

 compiler/coreSyn/CorePrep.lhs |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/compiler/coreSyn/CorePrep.lhs b/compiler/coreSyn/CorePrep.lhs
index f2fb56f..9c7d23b 100644
--- a/compiler/coreSyn/CorePrep.lhs
+++ b/compiler/coreSyn/CorePrep.lhs
@@ -459,7 +459,7 @@ it seems good for CorePrep to be robust.
 --              CpeRhs: produces a result satisfying CpeRhs
 -- ---------------------------------------------------------------------------
 
-cpeRhsE :: DynFlags -> CorePrepEnv -> CoreExpr -> UniqSM (Floats, CpeRhs)
+cpeRhsE :: CorePrepEnv -> CoreExpr -> UniqSM (Floats, CpeRhs)
 -- If
 --      e  ===>  (bs, e')
 -- then
@@ -468,12 +468,12 @@ cpeRhsE :: DynFlags -> CorePrepEnv -> CoreExpr -> UniqSM (Floats, CpeRhs)
 -- For example
 --      f (g x)   ===>   ([v = g x], f v)
 
-cpeRhsE _ _env expr@(Type {})      = return (emptyFloats, expr)
-cpeRhsE _ _env expr@(Coercion {})  = return (emptyFloats, expr)
-cpeRhsE dflags env (Lit (LitInteger i _))
-    = cpeRhsE dflags env (cvtLitInteger (cpe_dynFlags env) (getMkIntegerId env) i)
-cpeRhsE _ _env expr@(Lit {})       = return (emptyFloats, expr)
-cpeRhsE dflags env expr@(Var {})   = cpeApp dflags env expr
+cpeRhsE _env expr@(Type {})      = return (emptyFloats, expr)
+cpeRhsE _env expr@(Coercion {})  = return (emptyFloats, expr)
+cpeRhsE env (Lit (LitInteger i _))
+    = cpeRhsE (cpe_dynFlags env) env (cvtLitInteger (cpe_dynFlags env) (getMkIntegerId env) i)
+cpeRhsE _env expr@(Lit {})       = return (emptyFloats, expr)
+cpeRhsE env expr@(Var {})   = cpeApp (cpe_dynFlags env) env expr
 
 cpeRhsE dflags env (Var f `App` _ `App` arg)
   | f `hasKey` lazyIdKey          -- Replace (lazy a) by a
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.