projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d4bb83
)
Rename local variable (no semantic effect)
author
simonpj@microsoft.com
<unknown>
Tue, 6 Feb 2007 12:24:56 +0000
(12:24 +0000)
committer
simonpj@microsoft.com
<unknown>
Tue, 6 Feb 2007 12:24:56 +0000
(12:24 +0000)
compiler/specialise/Rules.lhs
patch
|
blob
|
history
diff --git
a/compiler/specialise/Rules.lhs
b/compiler/specialise/Rules.lhs
index
2798ca1
..
10eb3f8
100644
(file)
--- a/
compiler/specialise/Rules.lhs
+++ b/
compiler/specialise/Rules.lhs
@@
-597,7
+597,7
@@
match_var menv subst@(tv_subst, id_subst, binds) v1 e2
| otherwise -- No renaming to do on e2
-> Just (tv_subst, extendVarEnv id_subst v1' e2, binds)
- Just e2' | tcEqExprX (nukeRnEnvL rn_env) e2' e2
+ Just e1' | tcEqExprX (nukeRnEnvL rn_env) e1' e2
-> Just subst
| otherwise