sig
  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 modify : key -> ('-> 'a) -> '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 BatEnum.t
      val values : 'a t -> 'BatEnum.t
      val min_binding : 'a t -> key * 'a
      val max_binding : 'a t -> key * 'a
      val choose : 'a t -> key * 'a
      val enum : 'a t -> (key * 'a) BatEnum.t
      val backwards : 'a t -> (key * 'a) BatEnum.t
      val of_enum : (key * 'a) BatEnum.t -> 'a t
      val print :
        ?first:string ->
        ?last:string ->
        ?sep:string ->
        ('BatInnerIO.output -> key -> unit) ->
        ('BatInnerIO.output -> '-> unit) ->
        'BatInnerIO.output -> 'b t -> unit
      module Exceptionless : sig val find : key -> 'a t -> 'a option end
      module Infix :
        sig
          val ( --> ) : 'a t -> key -> 'a
          val ( <-- ) : 'a t -> key * '-> 'a t
        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 = String.t
      type 'a t = 'BatMap.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 modify : key -> ('-> 'a) -> '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 BatEnum.t
      val values : 'a t -> 'BatEnum.t
      val min_binding : 'a t -> key * 'a
      val max_binding : 'a t -> key * 'a
      val choose : 'a t -> key * 'a
      val enum : 'a t -> (key * 'a) BatEnum.t
      val backwards : 'a t -> (key * 'a) BatEnum.t
      val of_enum : (key * 'a) BatEnum.t -> 'a t
      val print :
        ?first:string ->
        ?last:string ->
        ?sep:string ->
        ('BatInnerIO.output -> key -> unit) ->
        ('BatInnerIO.output -> '-> unit) ->
        'BatInnerIO.output -> 'b t -> unit
      module Exceptionless : sig val find : key -> 'a t -> 'a option end
      module Infix :
        sig
          val ( --> ) : 'a t -> key -> 'a
          val ( <-- ) : 'a t -> key * '-> 'a t
        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 = String.t
      type 'a t = 'BatMap.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 modify : key -> ('-> 'a) -> '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 BatEnum.t
      val values : 'a t -> 'BatEnum.t
      val min_binding : 'a t -> key * 'a
      val max_binding : 'a t -> key * 'a
      val choose : 'a t -> key * 'a
      val enum : 'a t -> (key * 'a) BatEnum.t
      val backwards : 'a t -> (key * 'a) BatEnum.t
      val of_enum : (key * 'a) BatEnum.t -> 'a t
      val print :
        ?first:string ->
        ?last:string ->
        ?sep:string ->
        ('BatInnerIO.output -> key -> unit) ->
        ('BatInnerIO.output -> '-> unit) ->
        'BatInnerIO.output -> 'b t -> unit
      module Exceptionless : sig val find : key -> 'a t -> 'a option end
      module Infix :
        sig
          val ( --> ) : 'a t -> key -> 'a
          val ( <-- ) : 'a t -> key * '-> 'a t
        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 = String.t
      type 'a t = 'BatMap.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 modify : key -> ('-> 'a) -> '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 BatEnum.t
      val values : 'a t -> 'BatEnum.t
      val min_binding : 'a t -> key * 'a
      val max_binding : 'a t -> key * 'a
      val choose : 'a t -> key * 'a
      val enum : 'a t -> (key * 'a) BatEnum.t
      val backwards : 'a t -> (key * 'a) BatEnum.t
      val of_enum : (key * 'a) BatEnum.t -> 'a t
      val print :
        ?first:string ->
        ?last:string ->
        ?sep:string ->
        ('BatInnerIO.output -> key -> unit) ->
        ('BatInnerIO.output -> '-> unit) ->
        'BatInnerIO.output -> 'b t -> unit
      module Exceptionless : sig val find : key -> 'a t -> 'a option end
      module Infix :
        sig
          val ( --> ) : 'a t -> key -> 'a
          val ( <-- ) : 'a t -> key * '-> 'a t
        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 = BatRope.t
      type 'a t = 'BatMap.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 modify : key -> ('-> 'a) -> '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 BatEnum.t
      val values : 'a t -> 'BatEnum.t
      val min_binding : 'a t -> key * 'a
      val max_binding : 'a t -> key * 'a
      val choose : 'a t -> key * 'a
      val enum : 'a t -> (key * 'a) BatEnum.t
      val backwards : 'a t -> (key * 'a) BatEnum.t
      val of_enum : (key * 'a) BatEnum.t -> 'a t
      val print :
        ?first:string ->
        ?last:string ->
        ?sep:string ->
        ('BatInnerIO.output -> key -> unit) ->
        ('BatInnerIO.output -> '-> unit) ->
        'BatInnerIO.output -> 'b t -> unit
      module Exceptionless : sig val find : key -> 'a t -> 'a option end
      module Infix :
        sig
          val ( --> ) : 'a t -> key -> 'a
          val ( <-- ) : 'a t -> key * '-> 'a t
        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 = BatRope.t
      type 'a t = 'BatMap.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 modify : key -> ('-> 'a) -> '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 BatEnum.t
      val values : 'a t -> 'BatEnum.t
      val min_binding : 'a t -> key * 'a
      val max_binding : 'a t -> key * 'a
      val choose : 'a t -> key * 'a
      val enum : 'a t -> (key * 'a) BatEnum.t
      val backwards : 'a t -> (key * 'a) BatEnum.t
      val of_enum : (key * 'a) BatEnum.t -> 'a t
      val print :
        ?first:string ->
        ?last:string ->
        ?sep:string ->
        ('BatInnerIO.output -> key -> unit) ->
        ('BatInnerIO.output -> '-> unit) ->
        'BatInnerIO.output -> 'b t -> unit
      module Exceptionless : sig val find : key -> 'a t -> 'a option end
      module Infix :
        sig
          val ( --> ) : 'a t -> key -> 'a
          val ( <-- ) : 'a t -> key * '-> 'a t
        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 = BatInt.t
      type 'a t = 'BatMap.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 modify : key -> ('-> 'a) -> '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 BatEnum.t
      val values : 'a t -> 'BatEnum.t
      val min_binding : 'a t -> key * 'a
      val max_binding : 'a t -> key * 'a
      val choose : 'a t -> key * 'a
      val enum : 'a t -> (key * 'a) BatEnum.t
      val backwards : 'a t -> (key * 'a) BatEnum.t
      val of_enum : (key * 'a) BatEnum.t -> 'a t
      val print :
        ?first:string ->
        ?last:string ->
        ?sep:string ->
        ('BatInnerIO.output -> key -> unit) ->
        ('BatInnerIO.output -> '-> unit) ->
        'BatInnerIO.output -> 'b t -> unit
      module Exceptionless : sig val find : key -> 'a t -> 'a option end
      module Infix :
        sig
          val ( --> ) : 'a t -> key -> 'a
          val ( <-- ) : 'a t -> key * '-> 'a t
        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 : BatInterfaces.OrderedType->
      sig
        type key = Ord.t
        type 'a t = 'BatMap.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 modify : key -> ('-> 'a) -> '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 BatEnum.t
        val values : 'a t -> 'BatEnum.t
        val min_binding : 'a t -> key * 'a
        val max_binding : 'a t -> key * 'a
        val choose : 'a t -> key * 'a
        val enum : 'a t -> (key * 'a) BatEnum.t
        val backwards : 'a t -> (key * 'a) BatEnum.t
        val of_enum : (key * 'a) BatEnum.t -> 'a t
        val print :
          ?first:string ->
          ?last:string ->
          ?sep:string ->
          ('BatInnerIO.output -> key -> unit) ->
          ('BatInnerIO.output -> '-> unit) ->
          'BatInnerIO.output -> 'b t -> unit
        module Exceptionless : sig val find : key -> 'a t -> 'a option end
        module Infix :
          sig
            val ( --> ) : 'a t -> key -> 'a
            val ( <-- ) : 'a t -> key * '-> 'a t
          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
  type ('a, 'b) t = ('a, 'b) BatMap.t
  val empty : ('a, 'b) t
  val is_empty : ('a, 'b) t -> bool
  val create : ('-> '-> int) -> ('a, 'b) t
  val singleton : ?cmp:('-> '-> int) -> '-> '-> ('a, 'b) t
  val add : '-> '-> ('a, 'b) t -> ('a, 'b) t
  val find : '-> ('a, 'b) t -> 'b
  val remove : '-> ('a, 'b) t -> ('a, 'b) t
  val mem : '-> ('a, 'b) t -> bool
  val exists : '-> ('a, 'b) t -> bool
  val iter : ('-> '-> unit) -> ('a, 'b) t -> unit
  val map : ('-> 'b) -> ('c, 'a) t -> ('c, 'b) t
  val mapi : ('-> '-> 'c) -> ('a, 'b) t -> ('a, 'c) t
  val fold : ('-> '-> 'b) -> ('c, 'a) t -> '-> 'b
  val foldi : ('-> '-> '-> 'c) -> ('a, 'b) t -> '-> 'c
  val filter : ('-> bool) -> ('b, 'a) t -> ('b, 'a) t
  val filteri : ('-> '-> bool) -> ('a, 'b) t -> ('a, 'b) t
  val filter_map : ('-> '-> 'c option) -> ('a, 'b) t -> ('a, 'c) t
  val choose : ('a, 'b) t -> 'a * 'b
  val min_binding : ('a, 'b) t -> 'a * 'b
  val max_binding : ('a, 'b) t -> 'a * 'b
  val enum : ('a, 'b) t -> ('a * 'b) BatEnum.t
  val of_enum : ?cmp:('-> '-> int) -> ('a * 'b) BatEnum.t -> ('a, 'b) t
  val for_all : ('-> '-> bool) -> ('a, 'b) t -> bool
  val exists_f : ('-> '-> bool) -> ('a, 'b) t -> bool
  val partition : ('-> '-> bool) -> ('a, 'b) t -> ('a, 'b) t * ('a, 'b) t
  val add_carry : '-> '-> ('a, 'b) t -> ('a, 'b) t * 'b option
  val modify : '-> ('-> 'b) -> ('a, 'b) t -> ('a, 'b) t
  val extract : '-> ('a, 'b) t -> 'b * ('a, 'b) t
  val pop : ('a, 'b) t -> ('a * 'b) * ('a, 'b) t
  val union : ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t
  val diff : ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t
  val intersect : ('-> '-> 'c) -> ('d, 'a) t -> ('d, 'b) t -> ('d, 'c) t
  module Infix :
    sig
      val ( --> ) : ('a, 'b) t -> '-> 'b
      val ( <-- ) : ('a, 'b) t -> 'a * '-> ('a, 'b) t
    end
  val print :
    ?first:string ->
    ?last:string ->
    ?sep:string ->
    ('BatInnerIO.output -> '-> unit) ->
    ('BatInnerIO.output -> '-> unit) ->
    'BatInnerIO.output -> ('b, 'c) t -> unit
end