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 input_line_opt : in_channel -> string option
  val next_opt : 'a t -> 'a option
  val map : ('-> 'b) -> 'a t -> 'Stream.t
  val map_filter : ('-> 'b option) -> 'a t -> 'b t
  val is_empty : 'Stream.t -> bool
  val njunk : int -> 'a t -> unit
  val keep_last : int -> 'a t -> unit
  val to_list : 'a t -> 'a list
  val pervasives_eq : '-> '-> bool
  val is_prefix : ?eq:('-> '-> bool) -> prefix:'a list -> 'a t -> bool
end