From: simonpj@microsoft.com Date: Thu, 4 May 2006 11:15:00 +0000 (+0000) Subject: Make rules available in RHS X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=dd09857f4b1bb6375ca807ca06f13ab0625e463d Make rules available in RHS After some earlier re-factoring, the code that was carefully trying to make RULES available in a function's own RHS was plain wrong. This commit fixes it. Some programs should go faster! --- diff --git a/compiler/simplCore/SimplEnv.lhs b/compiler/simplCore/SimplEnv.lhs index 00f035e..c91ca58 100644 --- a/compiler/simplCore/SimplEnv.lhs +++ b/compiler/simplCore/SimplEnv.lhs @@ -562,7 +562,7 @@ when substituting in h's RULE. \begin{code} addLetIdInfo :: SimplEnv -> InBinder -> OutBinder -> (SimplEnv, OutBinder) addLetIdInfo env in_id out_id - = (modifyInScope env out_id out_id, final_id) + = (modifyInScope env out_id final_id, final_id) where final_id = out_id `setIdInfo` new_info subst = mkCoreSubst env