From f8d1a7fcf13f655200be366733c24233b5df7f9a Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sun, 7 Sep 2008 11:53:30 -0400 Subject: 'read' type class --- src/mono_util.sml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mono_util.sml') diff --git a/src/mono_util.sml b/src/mono_util.sml index b2fdff52..90ae3a4f 100644 --- a/src/mono_util.sml +++ b/src/mono_util.sml @@ -145,6 +145,12 @@ fun mapfoldB {typ = fc, exp = fe, bind} = S.map2 (mfe ctx e, fn e' => (ECon (dk, n, SOME e'), loc)) + | ESome (t, e) => + S.bind2 (mft t, + fn t' => + S.map2 (mfe ctx e, + fn e' => + (ESome (t', e'), loc))) | EFfi _ => S.return2 eAll | EFfiApp (m, x, es) => S.map2 (ListUtil.mapfold (fn e => mfe ctx e) es, -- cgit v1.2.3