functor
  (H : sig
         type t
         val equal : t -> t -> bool
         val hash : t -> int
         type sexpable = t
         val sexp_of_t : sexpable -> Sexplib.Sexp.t
         val t_of_sexp : Sexplib.Sexp.t -> sexpable
         type binable = t
         val bin_size_t : binable Bin_prot.Size.sizer
         val bin_write_t : binable Bin_prot.Map_to_safe.writer
         val bin_write_t_ : binable Bin_prot.Unsafe_write_c.writer
         val bin_read_t : binable Bin_prot.Read_ml.reader
         val bin_read_t_ : binable Bin_prot.Unsafe_read_c.reader
         val bin_read_t__ : (int -> binable) Bin_prot.Unsafe_read_c.reader
         val bin_writer_t : binable Bin_prot.Type_class.writer
         val bin_reader_t : binable Bin_prot.Type_class.reader
         val bin_t : binable Bin_prot.Type_class.t
       end->
  sig
    type key = H.t
    type 'a t
    module T : sig type 'a key = key type ('a, 'b) t = 'b t end
    val create : int -> 'a t
    val clear : 'a t -> unit
    val copy : 'a t -> 'a t
    val shadow_add : 'a t -> key:key -> data:'-> unit
    val remove : 'a t -> key -> unit
    val shadow_find : 'a t -> key -> 'a list
    val replace : 'a t -> key:key -> data:'-> unit
    val mem : 'a t -> key -> bool
    val iter : 'a t -> f:(key:key -> data:'-> unit) -> unit
    val fold : 'a t -> init:'-> f:(key:key -> data:'-> '-> 'b) -> 'b
    val length : 'a t -> int
    val map : 'a t -> f:('-> 'b) -> 'b t
    val mapi : 'a t -> f:(key:key -> data:'-> 'b) -> 'b t
    val filter_map : 'a t -> f:('-> 'b option) -> 'b t
    val filter_mapi : 'a t -> f:(key:key -> data:'-> 'b option) -> 'b t
    val remove_all : 'a t -> key -> unit
    val find_default : 'a t -> key -> default:(unit -> 'a) -> 'a
    val find : 'a t -> key -> 'a option
    val find_exn : 'a t -> key -> 'a
    val iter_vals : 'a t -> f:('-> unit) -> unit
    val of_alist : (key * 'a) list -> [ `Duplicate_key of key | `Ok of 'a t ]
    val of_alist_exn : (key * 'a) list -> 'a t
    val of_alist_shadow : (key * 'a) list -> 'a list t
    val to_alist : 'a t -> (key * 'a) list
    val to_alist_shadow : 'a t -> (key * 'a list) list
    val merge :
      f:(key:key -> 'a option -> 'b option -> 'c option) ->
      'a t -> 'b t -> 'c t
    val keys : 'a t -> key list
    val data : 'a t -> 'a list
    val filter_inplace : 'a t -> f:('-> bool) -> unit
    val filteri_inplace : 'a t -> f:(key -> '-> bool) -> unit
    val equal : 'a t -> 'a t -> ('-> '-> bool) -> bool
    val add_to_groups :
      'a t ->
      get_key:('-> key) ->
      get_data:('-> 'a) -> combine:('-> '-> 'a) -> rows:'b list -> unit
    val group :
      ?size:int ->
      get_key:('-> key) ->
      get_data:('-> 'b) -> combine:('-> '-> 'b) -> 'a list -> 'b t
    val create_with_key : get_key:('-> key) -> 'a list -> 'a t
    val create_mapped :
      get_key:('-> key) -> get_data:('-> 'b) -> 'a list -> 'b t
    type 'a sexpable = 'a t
    val sexp_of_t : ('-> Sexplib.Sexp.t) -> 'a sexpable -> Sexplib.Sexp.t
    val t_of_sexp : (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a sexpable
    type 'a binable = 'a t
    val bin_size_t : ('a, 'a binable) Bin_prot.Size.sizer1
    val bin_write_t : ('a, 'a binable) Bin_prot.Map_to_safe.writer1
    val bin_write_t_ : ('a, 'a binable) Bin_prot.Unsafe_write_c.writer1
    val bin_read_t : ('a, 'a binable) Bin_prot.Map_to_safe.reader1
    val bin_read_t_ : ('a, 'a binable) Bin_prot.Unsafe_read_c.reader1
    val bin_read_t__ : ('a, int -> 'a binable) Bin_prot.Unsafe_read_c.reader1
    val bin_writer_t : ('a, 'a binable) Bin_prot.Type_class.S1.writer
    val bin_reader_t : ('a, 'a binable) Bin_prot.Type_class.S1.reader
    val bin_t : ('a, 'a binable) Bin_prot.Type_class.S1.t
  end