summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2012-03-14 09:06:23 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2012-03-14 09:06:23 -0400
commit3b4137c893c21d68a1dbecdcb3acd865dd32057d (patch)
tree9daa1af8859cbf5d67a7f94ef9b49c26c351792a
parentd069e06ce669999393e5db361ac378804adbe3ba (diff)
Remove weird special case for FFI functions whose first arguments have type [unit]
-rw-r--r--src/corify.sml4
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 _, _) =>