From 218146e27b7cd6ad51ba9ac23f0f825ff2a0bf11 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sat, 7 Nov 2009 11:06:38 -0500 Subject: Saving paper decisions --- lib/ur/top.ur | 4 ++-- lib/ur/top.urs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/ur') diff --git a/lib/ur/top.ur b/lib/ur/top.ur index 10b3f711..423507b5 100644 --- a/lib/ur/top.ur +++ b/lib/ur/top.ur @@ -224,10 +224,10 @@ fun queryX [tables ::: {{Type}}] [exps ::: {Type}] [ctx ::: {Unit}] [inp ::: {Ty (fn fs acc => return {acc}{f fs}) -fun queryX' [tables ::: {{Type}}] [exps ::: {Type}] [ctx ::: {Unit}] +fun queryX' [tables ::: {{Type}}] [exps ::: {Type}] [ctx ::: {Unit}] [inp ::: {Type}] [tables ~ exps] (q : sql_query tables exps) (f : $(exps ++ map (fn fields :: {Type} => $fields) tables) - -> transaction (xml ctx [] [])) = + -> transaction (xml ctx inp [])) = query q (fn fs acc => r <- f fs; diff --git a/lib/ur/top.urs b/lib/ur/top.urs index 80d402b1..6470d7d7 100644 --- a/lib/ur/top.urs +++ b/lib/ur/top.urs @@ -132,12 +132,12 @@ val queryX : tables ::: {{Type}} -> exps ::: {Type} -> ctx ::: {Unit} -> inp ::: -> xml ctx inp []) -> transaction (xml ctx inp []) -val queryX' : tables ::: {{Type}} -> exps ::: {Type} -> ctx ::: {Unit} +val queryX' : tables ::: {{Type}} -> exps ::: {Type} -> ctx ::: {Unit} -> inp ::: {Type} -> [tables ~ exps] => sql_query tables exps -> ($(exps ++ map (fn fields :: {Type} => $fields) tables) - -> transaction (xml ctx [] [])) - -> transaction (xml ctx [] []) + -> transaction (xml ctx inp [])) + -> transaction (xml ctx inp []) val oneOrNoRows : tables ::: {{Type}} -> exps ::: {Type} -> [tables ~ exps] => -- cgit v1.2.3