Shell: simplify the signature of Hash.Hash_table
This commit is contained in:
parent
1f7f9b369d
commit
22ae4dbf45
@ -254,7 +254,7 @@ module Hash_map (Hash : HASH) = struct
|
|||||||
Data_encoding.(list (tup2 Hash.encoding arg_encoding))
|
Data_encoding.(list (tup2 Hash.encoding arg_encoding))
|
||||||
end
|
end
|
||||||
|
|
||||||
module Hash_table (Hash : HASH)
|
module Hash_table (Hash : MINIMAL_HASH)
|
||||||
: Hashtbl.S with type key = Hash.t
|
: Hashtbl.S with type key = Hash.t
|
||||||
= Hashtbl.Make (struct
|
= Hashtbl.Make (struct
|
||||||
type t = Hash.t
|
type t = Hash.t
|
||||||
|
@ -103,7 +103,7 @@ module Hash_map (Hash : HASH) : sig
|
|||||||
end
|
end
|
||||||
|
|
||||||
(** Builds a Hashtbl using some Hash type as keys. *)
|
(** Builds a Hashtbl using some Hash type as keys. *)
|
||||||
module Hash_table (Hash : HASH) : Hashtbl.S with type key = Hash.t
|
module Hash_table (Hash : MINIMAL_HASH) : Hashtbl.S with type key = Hash.t
|
||||||
|
|
||||||
(** {2 Predefined Hashes } ****************************************************)
|
(** {2 Predefined Hashes } ****************************************************)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user