Up

Module Update

Signature

type t =
| Data of string
(* Data string contains a chunk of data from the file. If break_on_lines, then data will be a single line (without the terminating newline). *)
| Warning of string * Warning.t
(* Warnings do not close the stream and whatever is reading can keep on doing so. The string is the file name. *)
| Error of string * Error.t
(* Errors cause the stream to be closed. The string is the file name. *)
val sexp_of_t : t -> Sexplib.Sexp.t
val to_string_hum : t -> string