aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/mono_util.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-06-10 18:28:43 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-06-10 18:28:43 -0400
commitc1c6013533ba8eaa3b41924bcd61d99a4da27955 (patch)
tree21e70479e0bc1cf28935d2d80700c1c3063ddc36 /src/mono_util.sml
parentecf88cd1a7c5d137a732c4c8eb4d34c5e845ccaf (diff)
Translation to Cjr
Diffstat (limited to 'src/mono_util.sml')
-rw-r--r--src/mono_util.sml8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mono_util.sml b/src/mono_util.sml
index 8decf033..bbfd5842 100644
--- a/src/mono_util.sml
+++ b/src/mono_util.sml
@@ -114,10 +114,12 @@ fun mapfoldB {typ = fc, exp = fe, bind} =
(EAbs (x, dom', ran', e'), loc))))
| ERecord xes =>
- S.map2 (ListUtil.mapfold (fn (x, e) =>
- S.map2 (mfe ctx e,
+ S.map2 (ListUtil.mapfold (fn (x, e, t) =>
+ S.bind2 (mfe ctx e,
fn e' =>
- (x, e')))
+ S.map2 (mft t,
+ fn t' =>
+ (x, e', t'))))
xes,
fn xes' =>
(ERecord xes', loc))