diff lib/basis.urs @ 292:6e665c7c96f6

Error-parsing ints
author Adam Chlipala <adamc@hcoop.net>
date Sun, 07 Sep 2008 12:15:46 -0400
parents df00701f2323
children 5f6a60b7ab00
line wrap: on
line diff
--- a/lib/basis.urs	Sun Sep 07 11:56:53 2008 -0400
+++ b/lib/basis.urs	Sun Sep 07 12:15:46 2008 -0400
@@ -32,6 +32,8 @@
 
 class read
 val read : t ::: Type -> read t -> string -> option t
+val readError : t ::: Type -> read t -> string -> t
+(* [readError] calls [error] if the input is malformed. *)
 val read_int : read int
 val read_float : read float
 val read_string : read string