diff lib/ur/top.urs @ 1064:b89e3d8731ed

Make oneRowE1 more general
author Adam Chlipala <adamc@hcoop.net>
date Thu, 10 Dec 2009 12:06:03 -0500
parents 5d9f47124c4c
children 9001966ae1c8
line wrap: on
line diff
--- a/lib/ur/top.urs	Tue Dec 08 12:06:41 2009 -0500
+++ b/lib/ur/top.urs	Thu Dec 10 12:06:03 2009 -0500
@@ -163,9 +163,9 @@
                     $(exps
                           ++ map (fn fields :: {Type} => $fields) tables)
 
-val oneRowE1 : tab ::: Name -> nm ::: Name -> t ::: Type
-               -> [[tab] ~ [nm]] =>
-    sql_query [tab = []] [nm = t]
+val oneRowE1 : tabs ::: {Unit} -> nm ::: Name -> t ::: Type
+               -> [tabs ~ [nm]] =>
+    sql_query (mapU [] tabs) [nm = t]
     -> transaction t
 
 val eqNullable : tables ::: {{Type}} -> agg ::: {{Type}} -> exps ::: {Type}