diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-06-22 10:12:23 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-06-22 10:12:23 -0400 |
commit | f3ddf9922b90bdd45ca5b1c33c72ff316d5440eb (patch) | |
tree | 01bca0e1718350a2e4601c9e493cbddb02d45ba3 /src/monoize.sml | |
parent | 8f7e31d24652037510c5eac81f56e711a5212246 (diff) |
FFI through monoize
Diffstat (limited to 'src/monoize.sml')
-rw-r--r-- | src/monoize.sml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/monoize.sml b/src/monoize.sml index 1dbbf211..310abc6a 100644 --- a/src/monoize.sml +++ b/src/monoize.sml @@ -63,7 +63,7 @@ fun monoType env (all as (c, loc)) = | L.CRel _ => poly () | L.CNamed n => (L'.TNamed n, loc) - | L.CFfi _ => raise Fail "Monoize CFfi" + | L.CFfi mx => (L'.TFfi mx, loc) | L.CApp _ => poly () | L.CAbs _ => poly () @@ -86,8 +86,8 @@ fun monoExp env (all as (e, loc)) = L.EPrim p => (L'.EPrim p, loc) | L.ERel n => (L'.ERel n, loc) | L.ENamed n => (L'.ENamed n, loc) - | L.EFfi _ => raise Fail "Monoize EFfi" - | L.EFfiApp _ => raise Fail "Monoize EFfiApp" + | L.EFfi mx => (L'.EFfi mx, loc) + | L.EFfiApp (m, x, es) => (L'.EFfiApp (m, x, map (monoExp env) es), loc) | L.EApp (e1, e2) => (L'.EApp (monoExp env e1, monoExp env e2), loc) | L.EAbs (x, dom, ran, e) => (L'.EAbs (x, monoType env dom, monoType env ran, monoExp (Env.pushERel env x dom) e), loc) |