diff src/mono_util.sml @ 572:57018f21cd5c

Handling singnal bind
author Adam Chlipala <adamc@hcoop.net>
date Sun, 21 Dec 2008 12:30:57 -0500
parents 162d5308e34f
children ac947e2f29ff
line wrap: on
line diff
--- a/src/mono_util.sml	Sun Dec 21 12:01:00 2008 -0500
+++ b/src/mono_util.sml	Sun Dec 21 12:30:57 2008 -0500
@@ -328,6 +328,12 @@
                 S.map2 (mfe ctx e,
                      fn e' =>
                         (ESignalReturn e', loc))
+              | ESignalBind (e1, e2) =>
+                S.bind2 (mfe ctx e1,
+                      fn e1' =>
+                         S.map2 (mfe ctx e2,
+                              fn e2' =>
+                                 (ESignalBind (e1', e2'), loc)))
     in
         mfe
     end