sig
  type 'a t = '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 : ('-> 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 t -> 'a t
  val ising : '-> '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 : ('-> unit) -> 'a t -> unit
  val lines_of_chars : char t -> string t
  val keep_whilei : (int -> '-> bool) -> 'a t -> 'a t
  val keep_while : ('-> bool) -> 'a t -> 'a t
  val truncate : int -> 'a t -> 'a t
  val skip_whilei : (int -> '-> bool) -> 'a t -> unit
  val skip_while : ('-> bool) -> 'a t -> unit
  val fold : ('-> '-> 'a) -> '-> 'b t -> 'a
  val to_list : 'a t -> 'a list
  val map : ('-> 'b) -> 'a t -> 'b t
  val is_empty : 'a t -> bool
  val lines_of_channel : Pervasives.in_channel -> string Stream.t
end