aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/ur/list.ur
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.ur
parent68135d19275831c9f63f7e141b5134c17c095b3f (diff)
Subquery expressions
Diffstat (limited to 'lib/ur/list.ur')
-rw-r--r--lib/ur/list.ur6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ur/list.ur b/lib/ur/list.ur
index bca5f4ba..bccbc82a 100644
--- a/lib/ur/list.ur
+++ b/lib/ur/list.ur
@@ -244,7 +244,7 @@ fun app [m] (_ : monad m) [a] f =
end
fun mapQuery [tables ::: {{Type}}] [exps ::: {Type}] [t ::: Type]
- [tables ~ exps] (q : sql_query tables exps)
+ [tables ~ exps] (q : sql_query [] tables exps)
(f : $(exps ++ map (fn fields :: {Type} => $fields) tables) -> t) =
ls <- query q
(fn fs acc => return (f fs :: acc))
@@ -252,7 +252,7 @@ fun mapQuery [tables ::: {{Type}}] [exps ::: {Type}] [t ::: Type]
return (rev ls)
fun mapQueryM [tables ::: {{Type}}] [exps ::: {Type}] [t ::: Type]
- [tables ~ exps] (q : sql_query tables exps)
+ [tables ~ exps] (q : sql_query [] tables exps)
(f : $(exps ++ map (fn fields :: {Type} => $fields) tables) -> transaction t) =
ls <- query q
(fn fs acc => v <- f fs; return (v :: acc))
@@ -260,7 +260,7 @@ fun mapQueryM [tables ::: {{Type}}] [exps ::: {Type}] [t ::: Type]
return (rev ls)
fun mapQueryPartialM [tables ::: {{Type}}] [exps ::: {Type}] [t ::: Type]
- [tables ~ exps] (q : sql_query tables exps)
+ [tables ~ exps] (q : sql_query [] tables exps)
(f : $(exps ++ map (fn fields :: {Type} => $fields) tables) -> transaction (option t)) =
ls <- query q
(fn fs acc => v <- f fs;