Mercurial > urweb
diff src/monoize.sml @ 26:4ab19c19665f
Closure conversion
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 10 Jun 2008 15:56:33 -0400 |
parents | 0a762c73824d |
children | 537db4ee89f4 |
line wrap: on
line diff
--- a/src/monoize.sml Tue Jun 10 13:14:45 2008 -0400 +++ b/src/monoize.sml Tue Jun 10 15:56:33 2008 -0400 @@ -86,8 +86,8 @@ | L.ERel n => (L'.ERel n, loc) | L.ENamed n => (L'.ENamed n, loc) | L.EApp (e1, e2) => (L'.EApp (monoExp env e1, monoExp env e2), loc) - | L.EAbs (x, t, e) => - (L'.EAbs (x, monoType env t, monoExp (Env.pushERel env x t) e), loc) + | L.EAbs (x, dom, ran, e) => + (L'.EAbs (x, monoType env dom, monoType env ran, monoExp (Env.pushERel env x dom) e), loc) | L.ECApp _ => poly () | L.ECAbs _ => poly ()