summaryrefslogtreecommitdiff
path: root/src/mono_util.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-04-04 15:56:47 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-04-04 15:56:47 -0400
commitcd768be8105e43b8c8d0cf1578528a02f5341a95 (patch)
tree3464b0dbe1197e509f51d5f6181dda2804344e26 /src/mono_util.sml
parentca7196c5dd362ccc6f19aaafef5b4252522e96a2 (diff)
sleep and better Scriptcheck
Diffstat (limited to 'src/mono_util.sml')
-rw-r--r--src/mono_util.sml18
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