summaryrefslogtreecommitdiff
path: root/lib/basis.urs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/basis.urs')
-rw-r--r--lib/basis.urs12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/basis.urs b/lib/basis.urs
index 91933254..a095a57e 100644
--- a/lib/basis.urs
+++ b/lib/basis.urs
@@ -206,19 +206,19 @@ val dml : dml -> transaction unit
val insert : fields ::: {Type}
-> sql_table fields
-> $(fold (fn nm (t :: Type) acc => [nm] ~ acc =>
- [nm = sql_exp [] [] [] t] ++ acc) [] fields)
+ [nm = sql_exp [T = fields] [] [] t] ++ acc) [] fields)
-> dml
-val update : changed :: {Type} -> unchanged ::: {Type} -> changed ~ unchanged
- -> sql_table (changed ++ unchanged)
+val update : changed ::: {Type} -> unchanged ::: {Type} -> changed ~ unchanged
-> $(fold (fn nm (t :: Type) acc => [nm] ~ acc =>
- [nm = sql_exp [] [] (changed ++ unchanged) t] ++ acc) [] changed)
- -> sql_exp [] [] (changed ++ unchanged) bool
+ [nm = sql_exp [T = changed ++ unchanged] [] [] t] ++ acc) [] changed)
+ -> sql_table (changed ++ unchanged)
+ -> sql_exp [T = changed ++ unchanged] [] [] bool
-> dml
val delete : fields ::: {Type}
-> sql_table fields
- -> sql_exp [] [] fields bool
+ -> sql_exp [T = fields] [] [] bool
-> dml