summaryrefslogtreecommitdiff
path: root/src/core_util.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-11-01 16:46:16 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-11-01 16:46:16 -0400
commit2e59aaacd591f76ba5d509284b835c8c34a034f5 (patch)
tree27d86d6061f3e52708492b82d0cfb82157c098cd /src/core_util.sml
parent1145290f6ac5b13fe94772c692caa3cdb55bbf5f (diff)
Wrapping works in Blog
Diffstat (limited to 'src/core_util.sml')
-rw-r--r--src/core_util.sml9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core_util.sml b/src/core_util.sml
index f0697183..2a690736 100644
--- a/src/core_util.sml
+++ b/src/core_util.sml
@@ -487,6 +487,15 @@ fun mapfoldB {kind = fk, con = fc, exp = fe, bind} =
fn es' =>
(EClosure (n, es'), loc))
+ | ELet (x, t, e1, e2) =>
+ S.bind2 (mfc ctx t,
+ fn t' =>
+ S.bind2 (mfe ctx e1,
+ fn e1' =>
+ S.map2 (mfe ctx e2,
+ fn e2' =>
+ (ELet (x, t', e1', e2'), loc))))
+
and mfp ctx (pAll as (p, loc)) =
case p of
PWild => S.return2 pAll