aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-09-07 11:53:30 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-09-07 11:53:30 -0400
commitf8d1a7fcf13f655200be366733c24233b5df7f9a (patch)
treed2b1505cfdcef966f5410d29930821ab39fa1818 /lib
parent9ae8932c978ab9c12f683745b47b3e0898581635 (diff)
'read' type class
Diffstat (limited to 'lib')
-rw-r--r--lib/basis.urs9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/basis.urs b/lib/basis.urs
index 4275e195..b2f3122d 100644
--- a/lib/basis.urs
+++ b/lib/basis.urs
@@ -30,9 +30,12 @@ val show_float : show float
val show_string : show string
val show_bool : show bool
-val stringToInt : string -> option int
-val stringToFloat : string -> option float
-val stringToBool : string -> option bool
+class read
+val read : t ::: Type -> read t -> string -> option t
+val read_int : read int
+val read_float : read float
+val read_string : read string
+val read_bool : read bool
(** SQL *)