diff src/mono_util.sml @ 695:500e93aa436f

sleep and better Scriptcheck
author Adam Chlipala <adamc@hcoop.net>
date Sat, 04 Apr 2009 15:56:47 -0400
parents f73913d97a40
children 70cbdcf5989b
line wrap: on
line diff
--- a/src/mono_util.sml	Sat Apr 04 14:55:36 2009 -0400
+++ b/src/mono_util.sml	Sat Apr 04 15:56:47 2009 -0400
@@ -360,12 +360,18 @@
                                              (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