aboutsummaryrefslogtreecommitdiffhomepage
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
commit8956b5096cd268b6eb73040ede0688849084c5fe (patch)
treedec271c0511b398d8701237909469ed5be9dca5b /lib/ur/list.urs
parent68135d19275831c9f63f7e141b5134c17c095b3f (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)