diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-11-01 16:46:16 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-11-01 16:46:16 -0400 |
commit | 42b8f4ea4a237cdad253b5e5c654c6a71067b625 (patch) | |
tree | 27d86d6061f3e52708492b82d0cfb82157c098cd /src/core_util.sml | |
parent | bcacd9c7aca307547ebff8dc7038b6f78156b507 (diff) |
Wrapping works in Blog
Diffstat (limited to 'src/core_util.sml')
-rw-r--r-- | src/core_util.sml | 9 |
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 |