diff options
Diffstat (limited to 'src/mono_util.sml')
-rw-r--r-- | src/mono_util.sml | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/mono_util.sml b/src/mono_util.sml index bbc9c7e7..9455435c 100644 --- a/src/mono_util.sml +++ b/src/mono_util.sml @@ -360,12 +360,18 @@ fun mapfoldB {typ = fc, exp = fe, bind} = (EServerCall (s', ek', t'), loc)))) | ERecv (s, ek, t) => S.bind2 (mfe ctx s, - fn s' => - S.bind2 (mfe ctx ek, - fn ek' => - S.map2 (mft t, - fn t' => - (ERecv (s', ek', t'), loc)))) + fn s' => + S.bind2 (mfe ctx ek, + fn ek' => + S.map2 (mft t, + fn t' => + (ERecv (s', ek', t'), loc)))) + | ESleep (s, ek) => + S.bind2 (mfe ctx s, + fn s' => + S.map2 (mfe ctx ek, + fn ek' => + (ESleep (s', ek'), loc))) in mfe end |