From dd09857f4b1bb6375ca807ca06f13ab0625e463d Mon Sep 17 00:00:00 2001 From: "simonpj@microsoft.com" Date: Thu, 4 May 2006 11:15:00 +0000 Subject: [PATCH] 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! --- compiler/simplCore/SimplEnv.lhs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.7.10.4