sig
  type 'a t = 'Tail.t
  val create : unit -> 'a t
  val extend : 'a t -> '-> unit
  val close_exn : 'a t -> unit
  val close_if_open : 'a t -> unit
  val is_closed : 'a t -> bool
  module Stream :
    sig
      type 'a t = 'Tail.Stream.t
      type 'a next = 'Tail.Stream.next = Nil | Cons of 'a * 'a t
      val next : 'a t -> 'a next Deferred.t
      val sexp_of_t : ('-> Sexplib.Sexp.t) -> 'a t -> Sexplib.Sexp.t
    end
  val collect : 'a t -> 'Stream.t
  val sexp_of_t : ('-> Sexplib.Sexp.t) -> 'a t -> Sexplib.Sexp.t
end