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/monoize.sml | |
parent | bcacd9c7aca307547ebff8dc7038b6f78156b507 (diff) |
Wrapping works in Blog
Diffstat (limited to 'src/monoize.sml')
-rw-r--r-- | src/monoize.sml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/monoize.sml b/src/monoize.sml index 17e28034..79940842 100644 --- a/src/monoize.sml +++ b/src/monoize.sml @@ -1954,6 +1954,15 @@ fun monoExp (env, st, fm) (all as (e, loc)) = in ((L'.EClosure (n, es), loc), fm) end + + | L.ELet (x, t, e1, e2) => + let + val t' = monoType env t + val (e1, fm) = monoExp (env, st, fm) e1 + val (e2, fm) = monoExp (Env.pushERel env x t, st, fm) e2 + in + ((L'.ELet (x, t', e1, e2), loc), fm) + end end fun monoDecl (env, fm) (all as (d, loc)) = |