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))
|
||||
end
|
||||
|
||||
module Hash_table (Hash : HASH)
|
||||
module Hash_table (Hash : MINIMAL_HASH)
|
||||
: Hashtbl.S with type key = Hash.t
|
||||
= Hashtbl.Make (struct
|
||||
type t = Hash.t
|
||||
|
@ -103,7 +103,7 @@ module Hash_map (Hash : HASH) : sig
|
||||
end
|
||||
|
||||
(** 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 } ****************************************************)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user