summaryrefslogtreecommitdiff
path: root/lib/ur/list.urs
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2010-03-25 15:44:24 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2010-03-25 15:44:24 -0400
commit26eeffeaee9f015cc95430da2f5308ce585a194d (patch)
treedec271c0511b398d8701237909469ed5be9dca5b /lib/ur/list.urs
parent66e0340c72d73b437c0f004fbcefc52a2c2e10a8 (diff)
Subquery expressions
Diffstat (limited to 'lib/ur/list.urs')
-rw-r--r--lib/ur/list.urs6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ur/list.urs b/lib/ur/list.urs
index c5e41816..00c95053 100644
--- a/lib/ur/list.urs
+++ b/lib/ur/list.urs
@@ -51,19 +51,19 @@ val app : m ::: (Type -> Type) -> monad m -> a ::: Type
val mapQuery : tables ::: {{Type}} -> exps ::: {Type} -> t ::: Type
-> [tables ~ exps] =>
- sql_query tables exps
+ sql_query [] tables exps
-> ($(exps ++ map (fn fields :: {Type} => $fields) tables) -> t)
-> transaction (list t)
val mapQueryM : tables ::: {{Type}} -> exps ::: {Type} -> t ::: Type
-> [tables ~ exps] =>
- sql_query tables exps
+ sql_query [] tables exps
-> ($(exps ++ map (fn fields :: {Type} => $fields) tables) -> transaction t)
-> transaction (list t)
val mapQueryPartialM : tables ::: {{Type}} -> exps ::: {Type} -> t ::: Type
-> [tables ~ exps] =>
- sql_query tables exps
+ sql_query [] tables exps
-> ($(exps ++ map (fn fields :: {Type} => $fields) tables) -> transaction (option t))
-> transaction (list t)