summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-10-30 14:40:42 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-10-30 14:40:42 -0400
commit49330740529a9d1448bff0fd3123e8946ab3915d (patch)
tree3bf696058ebb4bf033bed7475be602a25aeeb88c /lib
parentd321a012ed51bf14ce6271198ccb29784efb7bd5 (diff)
Add time to some type classes
Diffstat (limited to 'lib')
-rw-r--r--lib/basis.urs4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/basis.urs b/lib/basis.urs
index ba8f3d40..ffb13330 100644
--- a/lib/basis.urs
+++ b/lib/basis.urs
@@ -19,6 +19,7 @@ val eq_int : eq int
val eq_float : eq float
val eq_string : eq string
val eq_bool : eq bool
+val eq_time : eq time
val mkEq : t ::: Type -> (t -> t -> bool) -> eq t
class num
@@ -41,6 +42,7 @@ val ord_int : ord int
val ord_float : ord float
val ord_string : ord string
val ord_bool : ord bool
+val ord_time : ord time
(** String operations *)
@@ -164,6 +166,7 @@ val sql_bool : sql_injectable bool
val sql_int : sql_injectable int
val sql_float : sql_injectable float
val sql_string : sql_injectable string
+val sql_time : sql_injectable time
val sql_inject : tables ::: {{Type}} -> agg ::: {{Type}} -> exps ::: {Type}
-> t ::: Type
-> sql_injectable t -> t -> sql_exp tables agg exps t
@@ -216,6 +219,7 @@ class sql_maxable
val sql_maxable_int : sql_maxable int
val sql_maxable_float : sql_maxable float
val sql_maxable_string : sql_maxable string
+val sql_maxable_time : sql_maxable time
val sql_max : t ::: Type -> sql_maxable t -> sql_aggregate t
val sql_min : t ::: Type -> sql_maxable t -> sql_aggregate t