sig
  module type OrderedType = Extlib.Interfaces.OrderedType
  module type S =
    sig
      type key
      type +'a t
      val empty : 'a t
      val is_empty : 'a t -> bool
      val add : key -> '-> 'a t -> 'a t
      val find : key -> 'a t -> 'a
      val remove : key -> 'a t -> 'a t
      val mem : key -> 'a t -> bool
      val iter : (key -> '-> unit) -> 'a t -> unit
      val map : ('-> 'b) -> 'a t -> 'b t
      val mapi : (key -> '-> 'b) -> 'a t -> 'b t
      val fold : (key -> '-> '-> 'b) -> 'a t -> '-> 'b
      val filter : ('-> bool) -> 'a t -> 'a t
      val filteri : (key -> '-> bool) -> 'a t -> 'a t
      val filter_map : (key -> '-> 'b option) -> 'a t -> 'b t
      val compare : ('-> '-> int) -> 'a t -> 'a t -> int
      val equal : ('-> '-> bool) -> 'a t -> 'a t -> bool
      val keys : 'a t -> key Extlib.Enum.t
      val values : 'a t -> 'Extlib.Enum.t
      val enum : 'a t -> (key * 'a) Extlib.Enum.t
      val of_enum : (key * 'a) Extlib.Enum.t -> 'a t
      val t_of_sexp :
        (Sexplib.Sexp.t -> key) ->
        (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a t
      val sexp_of_t :
        (key -> Sexplib.Sexp.t) ->
        ('-> Sexplib.Sexp.t) -> 'a t -> Sexplib.Sexp.t
      val print :
        ?first:string ->
        ?last:string ->
        ?sep:string ->
        ('Extlib.InnerIO.output -> key -> unit) ->
        ('Extlib.InnerIO.output -> '-> unit) ->
        'Extlib.InnerIO.output -> 'b t -> unit
      module Exceptionless : sig val find : key -> 'a t -> 'a option end
      module Labels :
        sig
          val add : key:key -> data:'-> 'a t -> 'a t
          val iter : f:(key:key -> data:'-> unit) -> 'a t -> unit
          val map : f:('-> 'b) -> 'a t -> 'b t
          val mapi : f:(key:key -> data:'-> 'b) -> 'a t -> 'b t
          val filter : f:('-> bool) -> 'a t -> 'a t
          val filteri : f:(key -> '-> bool) -> 'a t -> 'a t
          val fold :
            f:(key:key -> data:'-> '-> 'b) -> 'a t -> init:'-> 'b
          val compare : cmp:('-> '-> int) -> 'a t -> 'a t -> int
          val equal : cmp:('-> '-> bool) -> 'a t -> 'a t -> bool
        end
    end
  module StringMap :
    sig
      type key = Extlib.ExtString.String.t
      type 'a t = 'Extlib.ExtMap.Map.StringMap.t
      val empty : 'a t
      val is_empty : 'a t -> bool
      val add : key -> '-> 'a t -> 'a t
      val find : key -> 'a t -> 'a
      val remove : key -> 'a t -> 'a t
      val mem : key -> 'a t -> bool
      val iter : (key -> '-> unit) -> 'a t -> unit
      val map : ('-> 'b) -> 'a t -> 'b t
      val mapi : (key -> '-> 'b) -> 'a t -> 'b t
      val fold : (key -> '-> '-> 'b) -> 'a t -> '-> 'b
      val filter : ('-> bool) -> 'a t -> 'a t
      val filteri : (key -> '-> bool) -> 'a t -> 'a t
      val filter_map : (key -> '-> 'b option) -> 'a t -> 'b t
      val compare : ('-> '-> int) -> 'a t -> 'a t -> int
      val equal : ('-> '-> bool) -> 'a t -> 'a t -> bool
      val keys : 'a t -> key Extlib.Enum.t
      val values : 'a t -> 'Extlib.Enum.t
      val enum : 'a t -> (key * 'a) Extlib.Enum.t
      val of_enum : (key * 'a) Extlib.Enum.t -> 'a t
      val t_of_sexp :
        (Sexplib.Sexp.t -> key) ->
        (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a t
      val sexp_of_t :
        (key -> Sexplib.Sexp.t) ->
        ('-> Sexplib.Sexp.t) -> 'a t -> Sexplib.Sexp.t
      val print :
        ?first:string ->
        ?last:string ->
        ?sep:string ->
        ('Extlib.InnerIO.output -> key -> unit) ->
        ('Extlib.InnerIO.output -> '-> unit) ->
        'Extlib.InnerIO.output -> 'b t -> unit
      module Exceptionless : sig val find : key -> 'a t -> 'a option end
      module Labels :
        sig
          val add : key:key -> data:'-> 'a t -> 'a t
          val iter : f:(key:key -> data:'-> unit) -> 'a t -> unit
          val map : f:('-> 'b) -> 'a t -> 'b t
          val mapi : f:(key:key -> data:'-> 'b) -> 'a t -> 'b t
          val filter : f:('-> bool) -> 'a t -> 'a t
          val filteri : f:(key -> '-> bool) -> 'a t -> 'a t
          val fold :
            f:(key:key -> data:'-> '-> 'b) -> 'a t -> init:'-> 'b
          val compare : cmp:('-> '-> int) -> 'a t -> 'a t -> int
          val equal : cmp:('-> '-> bool) -> 'a t -> 'a t -> bool
        end
    end
  module IStringMap :
    sig
      type key = Extlib.ExtString.String.t
      type 'a t = 'Extlib.ExtMap.Map.IStringMap.t
      val empty : 'a t
      val is_empty : 'a t -> bool
      val add : key -> '-> 'a t -> 'a t
      val find : key -> 'a t -> 'a
      val remove : key -> 'a t -> 'a t
      val mem : key -> 'a t -> bool
      val iter : (key -> '-> unit) -> 'a t -> unit
      val map : ('-> 'b) -> 'a t -> 'b t
      val mapi : (key -> '-> 'b) -> 'a t -> 'b t
      val fold : (key -> '-> '-> 'b) -> 'a t -> '-> 'b
      val filter : ('-> bool) -> 'a t -> 'a t
      val filteri : (key -> '-> bool) -> 'a t -> 'a t
      val filter_map : (key -> '-> 'b option) -> 'a t -> 'b t
      val compare : ('-> '-> int) -> 'a t -> 'a t -> int
      val equal : ('-> '-> bool) -> 'a t -> 'a t -> bool
      val keys : 'a t -> key Extlib.Enum.t
      val values : 'a t -> 'Extlib.Enum.t
      val enum : 'a t -> (key * 'a) Extlib.Enum.t
      val of_enum : (key * 'a) Extlib.Enum.t -> 'a t
      val t_of_sexp :
        (Sexplib.Sexp.t -> key) ->
        (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a t
      val sexp_of_t :
        (key -> Sexplib.Sexp.t) ->
        ('-> Sexplib.Sexp.t) -> 'a t -> Sexplib.Sexp.t
      val print :
        ?first:string ->
        ?last:string ->
        ?sep:string ->
        ('Extlib.InnerIO.output -> key -> unit) ->
        ('Extlib.InnerIO.output -> '-> unit) ->
        'Extlib.InnerIO.output -> 'b t -> unit
      module Exceptionless : sig val find : key -> 'a t -> 'a option end
      module Labels :
        sig
          val add : key:key -> data:'-> 'a t -> 'a t
          val iter : f:(key:key -> data:'-> unit) -> 'a t -> unit
          val map : f:('-> 'b) -> 'a t -> 'b t
          val mapi : f:(key:key -> data:'-> 'b) -> 'a t -> 'b t
          val filter : f:('-> bool) -> 'a t -> 'a t
          val filteri : f:(key -> '-> bool) -> 'a t -> 'a t
          val fold :
            f:(key:key -> data:'-> '-> 'b) -> 'a t -> init:'-> 'b
          val compare : cmp:('-> '-> int) -> 'a t -> 'a t -> int
          val equal : cmp:('-> '-> bool) -> 'a t -> 'a t -> bool
        end
    end
  module NumStringMap :
    sig
      type key = Extlib.ExtString.String.t
      type 'a t = 'Extlib.ExtMap.Map.NumStringMap.t
      val empty : 'a t
      val is_empty : 'a t -> bool
      val add : key -> '-> 'a t -> 'a t
      val find : key -> 'a t -> 'a
      val remove : key -> 'a t -> 'a t
      val mem : key -> 'a t -> bool
      val iter : (key -> '-> unit) -> 'a t -> unit
      val map : ('-> 'b) -> 'a t -> 'b t
      val mapi : (key -> '-> 'b) -> 'a t -> 'b t
      val fold : (key -> '-> '-> 'b) -> 'a t -> '-> 'b
      val filter : ('-> bool) -> 'a t -> 'a t
      val filteri : (key -> '-> bool) -> 'a t -> 'a t
      val filter_map : (key -> '-> 'b option) -> 'a t -> 'b t
      val compare : ('-> '-> int) -> 'a t -> 'a t -> int
      val equal : ('-> '-> bool) -> 'a t -> 'a t -> bool
      val keys : 'a t -> key Extlib.Enum.t
      val values : 'a t -> 'Extlib.Enum.t
      val enum : 'a t -> (key * 'a) Extlib.Enum.t
      val of_enum : (key * 'a) Extlib.Enum.t -> 'a t
      val t_of_sexp :
        (Sexplib.Sexp.t -> key) ->
        (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a t
      val sexp_of_t :
        (key -> Sexplib.Sexp.t) ->
        ('-> Sexplib.Sexp.t) -> 'a t -> Sexplib.Sexp.t
      val print :
        ?first:string ->
        ?last:string ->
        ?sep:string ->
        ('Extlib.InnerIO.output -> key -> unit) ->
        ('Extlib.InnerIO.output -> '-> unit) ->
        'Extlib.InnerIO.output -> 'b t -> unit
      module Exceptionless : sig val find : key -> 'a t -> 'a option end
      module Labels :
        sig
          val add : key:key -> data:'-> 'a t -> 'a t
          val iter : f:(key:key -> data:'-> unit) -> 'a t -> unit
          val map : f:('-> 'b) -> 'a t -> 'b t
          val mapi : f:(key:key -> data:'-> 'b) -> 'a t -> 'b t
          val filter : f:('-> bool) -> 'a t -> 'a t
          val filteri : f:(key -> '-> bool) -> 'a t -> 'a t
          val fold :
            f:(key:key -> data:'-> '-> 'b) -> 'a t -> init:'-> 'b
          val compare : cmp:('-> '-> int) -> 'a t -> 'a t -> int
          val equal : cmp:('-> '-> bool) -> 'a t -> 'a t -> bool
        end
    end
  module RopeMap :
    sig
      type key = Extlib.Rope.t
      type 'a t = 'Extlib.ExtMap.Map.RopeMap.t
      val empty : 'a t
      val is_empty : 'a t -> bool
      val add : key -> '-> 'a t -> 'a t
      val find : key -> 'a t -> 'a
      val remove : key -> 'a t -> 'a t
      val mem : key -> 'a t -> bool
      val iter : (key -> '-> unit) -> 'a t -> unit
      val map : ('-> 'b) -> 'a t -> 'b t
      val mapi : (key -> '-> 'b) -> 'a t -> 'b t
      val fold : (key -> '-> '-> 'b) -> 'a t -> '-> 'b
      val filter : ('-> bool) -> 'a t -> 'a t
      val filteri : (key -> '-> bool) -> 'a t -> 'a t
      val filter_map : (key -> '-> 'b option) -> 'a t -> 'b t
      val compare : ('-> '-> int) -> 'a t -> 'a t -> int
      val equal : ('-> '-> bool) -> 'a t -> 'a t -> bool
      val keys : 'a t -> key Extlib.Enum.t
      val values : 'a t -> 'Extlib.Enum.t
      val enum : 'a t -> (key * 'a) Extlib.Enum.t
      val of_enum : (key * 'a) Extlib.Enum.t -> 'a t
      val t_of_sexp :
        (Sexplib.Sexp.t -> key) ->
        (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a t
      val sexp_of_t :
        (key -> Sexplib.Sexp.t) ->
        ('-> Sexplib.Sexp.t) -> 'a t -> Sexplib.Sexp.t
      val print :
        ?first:string ->
        ?last:string ->
        ?sep:string ->
        ('Extlib.InnerIO.output -> key -> unit) ->
        ('Extlib.InnerIO.output -> '-> unit) ->
        'Extlib.InnerIO.output -> 'b t -> unit
      module Exceptionless : sig val find : key -> 'a t -> 'a option end
      module Labels :
        sig
          val add : key:key -> data:'-> 'a t -> 'a t
          val iter : f:(key:key -> data:'-> unit) -> 'a t -> unit
          val map : f:('-> 'b) -> 'a t -> 'b t
          val mapi : f:(key:key -> data:'-> 'b) -> 'a t -> 'b t
          val filter : f:('-> bool) -> 'a t -> 'a t
          val filteri : f:(key -> '-> bool) -> 'a t -> 'a t
          val fold :
            f:(key:key -> data:'-> '-> 'b) -> 'a t -> init:'-> 'b
          val compare : cmp:('-> '-> int) -> 'a t -> 'a t -> int
          val equal : cmp:('-> '-> bool) -> 'a t -> 'a t -> bool
        end
    end
  module IRopeMap :
    sig
      type key = Extlib.Rope.t
      type 'a t = 'Extlib.ExtMap.Map.IRopeMap.t
      val empty : 'a t
      val is_empty : 'a t -> bool
      val add : key -> '-> 'a t -> 'a t
      val find : key -> 'a t -> 'a
      val remove : key -> 'a t -> 'a t
      val mem : key -> 'a t -> bool
      val iter : (key -> '-> unit) -> 'a t -> unit
      val map : ('-> 'b) -> 'a t -> 'b t
      val mapi : (key -> '-> 'b) -> 'a t -> 'b t
      val fold : (key -> '-> '-> 'b) -> 'a t -> '-> 'b
      val filter : ('-> bool) -> 'a t -> 'a t
      val filteri : (key -> '-> bool) -> 'a t -> 'a t
      val filter_map : (key -> '-> 'b option) -> 'a t -> 'b t
      val compare : ('-> '-> int) -> 'a t -> 'a t -> int
      val equal : ('-> '-> bool) -> 'a t -> 'a t -> bool
      val keys : 'a t -> key Extlib.Enum.t
      val values : 'a t -> 'Extlib.Enum.t
      val enum : 'a t -> (key * 'a) Extlib.Enum.t
      val of_enum : (key * 'a) Extlib.Enum.t -> 'a t
      val t_of_sexp :
        (Sexplib.Sexp.t -> key) ->
        (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a t
      val sexp_of_t :
        (key -> Sexplib.Sexp.t) ->
        ('-> Sexplib.Sexp.t) -> 'a t -> Sexplib.Sexp.t
      val print :
        ?first:string ->
        ?last:string ->
        ?sep:string ->
        ('Extlib.InnerIO.output -> key -> unit) ->
        ('Extlib.InnerIO.output -> '-> unit) ->
        'Extlib.InnerIO.output -> 'b t -> unit
      module Exceptionless : sig val find : key -> 'a t -> 'a option end
      module Labels :
        sig
          val add : key:key -> data:'-> 'a t -> 'a t
          val iter : f:(key:key -> data:'-> unit) -> 'a t -> unit
          val map : f:('-> 'b) -> 'a t -> 'b t
          val mapi : f:(key:key -> data:'-> 'b) -> 'a t -> 'b t
          val filter : f:('-> bool) -> 'a t -> 'a t
          val filteri : f:(key -> '-> bool) -> 'a t -> 'a t
          val fold :
            f:(key:key -> data:'-> '-> 'b) -> 'a t -> init:'-> 'b
          val compare : cmp:('-> '-> int) -> 'a t -> 'a t -> int
          val equal : cmp:('-> '-> bool) -> 'a t -> 'a t -> bool
        end
    end
  module IntMap :
    sig
      type key = Extlib.ExtInt.Int.t
      type 'a t = 'Extlib.ExtMap.Map.IntMap.t
      val empty : 'a t
      val is_empty : 'a t -> bool
      val add : key -> '-> 'a t -> 'a t
      val find : key -> 'a t -> 'a
      val remove : key -> 'a t -> 'a t
      val mem : key -> 'a t -> bool
      val iter : (key -> '-> unit) -> 'a t -> unit
      val map : ('-> 'b) -> 'a t -> 'b t
      val mapi : (key -> '-> 'b) -> 'a t -> 'b t
      val fold : (key -> '-> '-> 'b) -> 'a t -> '-> 'b
      val filter : ('-> bool) -> 'a t -> 'a t
      val filteri : (key -> '-> bool) -> 'a t -> 'a t
      val filter_map : (key -> '-> 'b option) -> 'a t -> 'b t
      val compare : ('-> '-> int) -> 'a t -> 'a t -> int
      val equal : ('-> '-> bool) -> 'a t -> 'a t -> bool
      val keys : 'a t -> key Extlib.Enum.t
      val values : 'a t -> 'Extlib.Enum.t
      val enum : 'a t -> (key * 'a) Extlib.Enum.t
      val of_enum : (key * 'a) Extlib.Enum.t -> 'a t
      val t_of_sexp :
        (Sexplib.Sexp.t -> key) ->
        (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a t
      val sexp_of_t :
        (key -> Sexplib.Sexp.t) ->
        ('-> Sexplib.Sexp.t) -> 'a t -> Sexplib.Sexp.t
      val print :
        ?first:string ->
        ?last:string ->
        ?sep:string ->
        ('Extlib.InnerIO.output -> key -> unit) ->
        ('Extlib.InnerIO.output -> '-> unit) ->
        'Extlib.InnerIO.output -> 'b t -> unit
      module Exceptionless : sig val find : key -> 'a t -> 'a option end
      module Labels :
        sig
          val add : key:key -> data:'-> 'a t -> 'a t
          val iter : f:(key:key -> data:'-> unit) -> 'a t -> unit
          val map : f:('-> 'b) -> 'a t -> 'b t
          val mapi : f:(key:key -> data:'-> 'b) -> 'a t -> 'b t
          val filter : f:('-> bool) -> 'a t -> 'a t
          val filteri : f:(key -> '-> bool) -> 'a t -> 'a t
          val fold :
            f:(key:key -> data:'-> '-> 'b) -> 'a t -> init:'-> 'b
          val compare : cmp:('-> '-> int) -> 'a t -> 'a t -> int
          val equal : cmp:('-> '-> bool) -> 'a t -> 'a t -> bool
        end
    end
  module Make :
    functor (Ord : OrderedType->
      sig
        type key = Ord.t
        type 'a t = 'Extlib.ExtMap.Map.Make(Ord).t
        val empty : 'a t
        val is_empty : 'a t -> bool
        val add : key -> '-> 'a t -> 'a t
        val find : key -> 'a t -> 'a
        val remove : key -> 'a t -> 'a t
        val mem : key -> 'a t -> bool
        val iter : (key -> '-> unit) -> 'a t -> unit
        val map : ('-> 'b) -> 'a t -> 'b t
        val mapi : (key -> '-> 'b) -> 'a t -> 'b t
        val fold : (key -> '-> '-> 'b) -> 'a t -> '-> 'b
        val filter : ('-> bool) -> 'a t -> 'a t
        val filteri : (key -> '-> bool) -> 'a t -> 'a t
        val filter_map : (key -> '-> 'b option) -> 'a t -> 'b t
        val compare : ('-> '-> int) -> 'a t -> 'a t -> int
        val equal : ('-> '-> bool) -> 'a t -> 'a t -> bool
        val keys : 'a t -> key Extlib.Enum.t
        val values : 'a t -> 'Extlib.Enum.t
        val enum : 'a t -> (key * 'a) Extlib.Enum.t
        val of_enum : (key * 'a) Extlib.Enum.t -> 'a t
        val t_of_sexp :
          (Sexplib.Sexp.t -> key) ->
          (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a t
        val sexp_of_t :
          (key -> Sexplib.Sexp.t) ->
          ('-> Sexplib.Sexp.t) -> 'a t -> Sexplib.Sexp.t
        val print :
          ?first:string ->
          ?last:string ->
          ?sep:string ->
          ('Extlib.InnerIO.output -> key -> unit) ->
          ('Extlib.InnerIO.output -> '-> unit) ->
          'Extlib.InnerIO.output -> 'b t -> unit
        module Exceptionless : sig val find : key -> 'a t -> 'a option end
        module Labels :
          sig
            val add : key:key -> data:'-> 'a t -> 'a t
            val iter : f:(key:key -> data:'-> unit) -> 'a t -> unit
            val map : f:('-> 'b) -> 'a t -> 'b t
            val mapi : f:(key:key -> data:'-> 'b) -> 'a t -> 'b t
            val filter : f:('-> bool) -> 'a t -> 'a t
            val filteri : f:(key -> '-> bool) -> 'a t -> 'a t
            val fold :
              f:(key:key -> data:'-> '-> 'b) -> 'a t -> init:'-> 'b
            val compare : cmp:('-> '-> int) -> 'a t -> 'a t -> int
            val equal : cmp:('-> '-> bool) -> 'a t -> 'a t -> bool
          end
      end
end