summaryrefslogtreecommitdiff
path: root/src/corify.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-05-02 11:27:26 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-05-02 11:27:26 -0400
commit4b3399b59d17ed32c8c2800267b8c59fd0378f21 (patch)
tree9918a955a048024a07e68cd466c19c0dbf56f867 /src/corify.sml
parent2307ccdcc5eb4ddfe719ddcbea999f7705ec79c3 (diff)
Successfully influenced effectful-ness status of FFI func
Diffstat (limited to 'src/corify.sml')
-rw-r--r--src/corify.sml3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corify.sml b/src/corify.sml
index 19568b8b..6cd2b753 100644
--- a/src/corify.sml
+++ b/src/corify.sml
@@ -539,6 +539,9 @@ fun corifyExp st (e, loc) =
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'.EAbs ("arg", dom, (L'.TRecord (L'.CRecord ((L'.KType, loc), []), loc), loc),
+ (L'.EFfiApp (m, x, []), loc)), loc)
| t as (L'.TFun _, _) =>
let
fun getArgs (all as (t, _), args) =