projects
/
matthijs
/
master-project
/
cλash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4d372d
)
Make substitute work for type variables as well.
author
Matthijs Kooijman
<m.kooijman@student.utwente.nl>
Sun, 21 Jun 2009 14:48:20 +0000
(16:48 +0200)
committer
Matthijs Kooijman
<m.kooijman@student.utwente.nl>
Sun, 21 Jun 2009 14:52:58 +0000
(16:52 +0200)
NormalizeTools.hs
patch
|
blob
|
history
diff --git
a/NormalizeTools.hs
b/NormalizeTools.hs
index 58432d3eae50f40816c09d5385fc62a33d5de798..923b54567767e68d7ccc68bfda2c0db9c70114f2 100644
(file)
--- a/
NormalizeTools.hs
+++ b/
NormalizeTools.hs
@@
-168,7
+168,7
@@
mkUnique = Trans.lift $ do
-- given expression.
substitute :: [(CoreBndr, CoreExpr)] -> CoreExpr -> CoreExpr
substitute replace expr = CoreSubst.substExpr subs expr
- where subs = foldl (\s (b, e) -> CoreSubst.extend
Id
Subst s b e) CoreSubst.emptySubst replace
+ where subs = foldl (\s (b, e) -> CoreSubst.extendSubst s b e) CoreSubst.emptySubst replace
-- Run a given TransformSession. Used mostly to setup the right calls and
-- an initial state.