diff src/mono_opt.sml @ 572:57018f21cd5c

Handling singnal bind
author Adam Chlipala <adamc@hcoop.net>
date Sun, 21 Dec 2008 12:30:57 -0500
parents 1901db85acb4
children 1e589a60b86f
line wrap: on
line diff
--- a/src/mono_opt.sml	Sun Dec 21 12:01:00 2008 -0500
+++ b/src/mono_opt.sml	Sun Dec 21 12:30:57 2008 -0500
@@ -360,6 +360,9 @@
       | EWrite (EPrim (Prim.String ""), loc) =>
         ERecord []
 
+      | ESignalBind ((ESignalReturn e1, loc), e2) =>
+        optExp (EApp (e2, e1), loc)
+
       | _ => e
 
 and optExp e = #1 (U.Exp.map {typ = typ, exp = exp} e)