summaryrefslogtreecommitdiff
path: root/demo/refFun.urs
diff options
context:
space:
mode:
Diffstat (limited to 'demo/refFun.urs')
-rw-r--r--demo/refFun.urs10
1 files changed, 10 insertions, 0 deletions
diff --git a/demo/refFun.urs b/demo/refFun.urs
new file mode 100644
index 00000000..bcecc8d3
--- /dev/null
+++ b/demo/refFun.urs
@@ -0,0 +1,10 @@
+functor Make(M : sig
+ type data
+ val inj : sql_injectable data
+ end) : sig
+ type ref
+ val new : M.data -> transaction ref
+ val read : ref -> transaction M.data
+ val write : ref -> M.data -> transaction unit
+ val delete : ref -> transaction unit
+end