From 14163f6e6e160694eff3d409ca3cf0b8b76c4a3a Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Thu, 10 Dec 2009 12:06:03 -0500 Subject: Make oneRowE1 more general --- lib/ur/top.ur | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ur/top.ur') diff --git a/lib/ur/top.ur b/lib/ur/top.ur index 423507b5..ffdd85bf 100644 --- a/lib/ur/top.ur +++ b/lib/ur/top.ur @@ -258,7 +258,7 @@ fun oneRow [tables ::: {{Type}}] [exps ::: {Type}] None => error Query returned no rows | Some r => r) -fun oneRowE1 [tab ::: Name] [nm ::: Name] [t ::: Type] [[tab] ~ [nm]] (q : sql_query [tab = []] [nm = t]) = +fun oneRowE1 [tabs ::: {Unit}] [nm ::: Name] [t ::: Type] [tabs ~ [nm]] (q : sql_query (mapU [] tabs) [nm = t]) = o <- oneOrNoRows q; return (case o of None => error Query returned no rows -- cgit v1.2.3