From c1c6013533ba8eaa3b41924bcd61d99a4da27955 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Tue, 10 Jun 2008 18:28:43 -0400 Subject: Translation to Cjr --- src/mono_util.sml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/mono_util.sml') 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)) -- cgit v1.2.3