sig
  type 'a t = 'a Stream.t
  exception Failure
  exception Error of string
  val from : (int -> 'a option) -> 'a t
  val of_list : 'a list -> 'a t
  val of_string : string -> char t
  val of_channel : in_channel -> char t
  val iter : ('a -> unit) -> 'a t -> unit
  val next : 'a t -> 'a
  val empty : 'a t -> unit
  val peek : 'a t -> 'a option
  val junk : 'a t -> unit
  val count : 'a t -> int
  val npeek : int -> 'a t -> 'a list
  val iapp : 'a t -> 'a t -> 'a t
  val icons : 'a -> 'a t -> 'a t
  val ising : 'a -> 'a t
  val lapp : (unit -> 'a t) -> 'a t -> 'a t
  val lcons : (unit -> 'a) -> 'a t -> 'a t
  val lsing : (unit -> 'a) -> 'a t
  val sempty : 'a t
  val slazy : (unit -> 'a t) -> 'a t
  val dump : ('a -> unit) -> 'a t -> unit
  val lines_of_chars : char t -> string t
  val keep_whilei : (int -> 'a -> bool) -> 'a t -> 'a t
  val keep_while : ('a -> bool) -> 'a t -> 'a t
  val truncate : int -> 'a t -> 'a t
  val skip_whilei : (int -> 'a -> bool) -> 'a t -> unit
  val skip_while : ('a -> bool) -> 'a t -> unit
  val fold : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'a
  val to_list : 'a t -> 'a list
  val map : ('a -> 'b) -> 'a t -> 'b t
  val is_empty : 'a t -> bool
  val lines_of_channel : Pervasives.in_channel -> string Stream.t
end