summaryrefslogtreecommitdiff
path: root/src/fuse.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-05-17 14:36:55 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-05-17 14:36:55 -0400
commit0d47ed0262cb6bf4dd95d482fbe6ce9c63e66285 (patch)
tree37190bd18788573834dedcc81888776b49cd758e /src/fuse.sml
parentcb6e88183a8c126118de373bfd98f3bef5e714a2 (diff)
Fix argument ordering bug in fuse; fix case subsitution bug in MonoReduce
Diffstat (limited to 'src/fuse.sml')
-rw-r--r--src/fuse.sml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fuse.sml b/src/fuse.sml
index b6bd6b47..ad1958f7 100644
--- a/src/fuse.sml
+++ b/src/fuse.sml
@@ -78,7 +78,7 @@ fun fuse file =
val (body, args) = getBody (e, args)
val body = MonoOpt.optExp (EWrite body, loc)
- val (body, _) = foldl (fn ((x, dom), (body, ran)) =>
+ val (body, _) = foldr (fn ((x, dom), (body, ran)) =>
((EAbs (x, dom, ran, body), loc),
(TFun (dom, ran), loc)))
(body, (TRecord [], loc)) args