sig
  module Elt :
    sig
      type 'a t = 'Bag.Elt.t
      val equal : 'a t -> 'a t -> bool
      val sexp_of_t :
        ('-> Std_internal.Sexp.t) -> 'a t -> Std_internal.Sexp.t
      val value : 'a t -> 'a
    end
  type 'a t = 'Bag.t
  val mem : ?equal:('-> '-> bool) -> 'a t -> '-> bool
  val length : 'a t -> int
  val is_empty : 'a t -> bool
  val iter : 'a t -> f:('-> unit) -> unit
  val fold : 'a t -> init:'accum -> f:('accum -> '-> 'accum) -> 'accum
  val exists : 'a t -> f:('-> bool) -> bool
  val for_all : 'a t -> f:('-> bool) -> bool
  val count : 'a t -> f:('-> bool) -> int
  val find : 'a t -> f:('-> bool) -> 'a option
  val find_map : 'a t -> f:('-> 'b option) -> 'b option
  val to_list : 'a t -> 'a list
  val to_array : 'a t -> 'a array
  val invariant : 'a t -> unit
  val create : unit -> 'a t
  val add : 'a t -> '-> 'Elt.t
  val remove : 'a t -> 'Elt.t -> unit
  val choose : 'a t -> 'Elt.t option
  val remove_one : 'a t -> 'a option
  val clear : 'a t -> unit
  val fold_elt : 'a t -> init:'-> f:('-> 'Elt.t -> 'b) -> 'b
  val iter_elt : 'a t -> f:('Elt.t -> unit) -> unit
  val find_elt : 'a t -> f:('-> bool) -> 'Elt.t option
  val until_empty : 'a t -> ('-> unit) -> unit
  val transfer : src:'a t -> dst:'a t -> unit
  val of_list : 'a list -> 'a t
  val sexp_of_t : ('-> Sexplib.Sexp.t) -> 'a t -> Sexplib.Sexp.t
end