diff options
author | Adam Chlipala <adam@chlipala.net> | 2012-03-14 09:06:23 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2012-03-14 09:06:23 -0400 |
commit | 564ad610124047d96710bccdc222a6802a31cc79 (patch) | |
tree | 9daa1af8859cbf5d67a7f94ef9b49c26c351792a | |
parent | c8ac2b226b55a960d6956747a34c2d981ee2d1e9 (diff) |
Remove weird special case for FFI functions whose first arguments have type [unit]
-rw-r--r-- | src/corify.sml | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/corify.sml b/src/corify.sml index bc14d408..fe73072b 100644 --- a/src/corify.sml +++ b/src/corify.sml @@ -541,9 +541,7 @@ fun corifyExp st (e, loc) = St.ENormal n => (L'.ENamed n, loc) | St.EFfi (m, t) => case t of - (L'.TFun (dom as (L'.TRecord (L'.CRecord (_, []), _), _), ran), _) => - (L'.EAbs ("arg", dom, ran, (L'.EFfiApp (m, x, []), loc)), loc) - | (L'.CApp ((L'.CFfi ("Basis", "transaction"), _), dom), _) => + (L'.CApp ((L'.CFfi ("Basis", "transaction"), _), dom), _) => (L'.EAbs ("arg", dom, (L'.TRecord (L'.CRecord ((L'.KType, loc), []), loc), loc), (L'.EFfiApp (m, x, []), loc)), loc) | t as (L'.TFun _, _) => |