Mercurial > urweb
diff src/core_util.sml @ 450:07f6576aeb0a
Wrapping works in Blog
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sat, 01 Nov 2008 16:46:16 -0400 |
parents | dfc8c991abd0 |
children | 787d4931fb07 |
line wrap: on
line diff
--- a/src/core_util.sml Sat Nov 01 16:08:39 2008 -0400 +++ b/src/core_util.sml Sat Nov 01 16:46:16 2008 -0400 @@ -487,6 +487,15 @@ 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