diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-06-10 18:28:43 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-06-10 18:28:43 -0400 |
commit | c1c6013533ba8eaa3b41924bcd61d99a4da27955 (patch) | |
tree | 21e70479e0bc1cf28935d2d80700c1c3063ddc36 /src/mono_util.sml | |
parent | ecf88cd1a7c5d137a732c4c8eb4d34c5e845ccaf (diff) |
Translation to Cjr
Diffstat (limited to 'src/mono_util.sml')
-rw-r--r-- | src/mono_util.sml | 8 |
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)) |