summaryrefslogtreecommitdiff
path: root/src/mono_util.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-12-21 12:30:57 -0500
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-12-21 12:30:57 -0500
commitd5c3faacb1c3114fe6802973a62528cda8be8ac7 (patch)
tree8193826346d3d4131730c22f1c5fb17eee1e0576 /src/mono_util.sml
parent0a3abbb2250da6464e91566a1f275829158d3058 (diff)
Handling singnal bind
Diffstat (limited to 'src/mono_util.sml')
-rw-r--r--src/mono_util.sml6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mono_util.sml b/src/mono_util.sml
index 9788a551..a85443d7 100644
--- a/src/mono_util.sml
+++ b/src/mono_util.sml
@@ -328,6 +328,12 @@ fun mapfoldB {typ = fc, exp = fe, bind} =
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