diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-10-06 15:39:27 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-10-06 15:39:27 -0400 |
commit | 8acfc38ef053ab673aad1c01b67a9ded9cdc3dff (patch) | |
tree | fa80b1891097e60c758ecb12fd8c441f37a03c85 /demo/more/versioned.urs | |
parent | 1de883737e14d5b6dbd442c5f92ca6e97d9322b5 (diff) |
SELECT DISTINCT; eta expansion during Cjrization
Diffstat (limited to 'demo/more/versioned.urs')
-rw-r--r-- | demo/more/versioned.urs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/demo/more/versioned.urs b/demo/more/versioned.urs new file mode 100644 index 00000000..eb0a485e --- /dev/null +++ b/demo/more/versioned.urs @@ -0,0 +1,19 @@ +functor Make(M : sig + con key :: {Type} + con data :: {Type} + constraint key ~ data + constraint [When] ~ (key ++ data) + + val key : $(map sql_injectable key) + val data : $(map (fn t => {Inj : sql_injectable_prim t, + Eq : eq t}) data) + + val keyFolder : folder key + val dataFolder : folder data + end) : sig + val insert : $(M.key ++ M.data) -> transaction unit + val update : $(M.key ++ M.data) -> transaction unit + + val keys : transaction (list $M.key) + val current : $M.key -> transaction (option $M.data) +end |