summaryrefslogtreecommitdiff
path: root/lib/basis.urs
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-08-31 10:36:54 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-08-31 10:36:54 -0400
commit4688519e58b0b2923e291d6a719a7f34810bfdc1 (patch)
treeb2857ef60e3307635c96f8300b5f515834e32cfc /lib/basis.urs
parent9e13248824201d825b9d06b266d045db63f3340d (diff)
Monoize transaction identifiers; improve disjointness prover on irreducible folds; change 'query' type
Diffstat (limited to 'lib/basis.urs')
-rw-r--r--lib/basis.urs5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/basis.urs b/lib/basis.urs
index f9fc23d5..421a07bc 100644
--- a/lib/basis.urs
+++ b/lib/basis.urs
@@ -155,11 +155,10 @@ val bind : t1 ::: Type -> t2 ::: Type
-> transaction t1 -> (t1 -> transaction t2)
-> transaction t2
-val query : tables ::: {{Type}} -> exps ::: {Type}
+val query : tables ::: {{Type}} -> exps ::: {Type} -> tables ~ exps
-> sql_query tables exps
-> state ::: Type
- -> ($(fold (fn nm (fields :: {Type}) acc => [nm] ~ acc => [nm = $fields] ++ acc) [] tables)
- -> $exps
+ -> ($(exps ++ fold (fn nm (fields :: {Type}) acc => [nm] ~ acc => [nm = $fields] ++ acc) [] tables)
-> state
-> transaction state)
-> state