Specifying value type for Hashtbl

Hi all.

I am having hard time finding how to specify the type parameter of the Hashtbl.create
I need a hash table inside a module, and the compiler is complaining

contains type variables that cannot be generalized

Hence, I need a way to specify the type of the value for let myTable = Hashtble.create (module Int)

Thanks in advance.

let items : (int, item) Hashtbl.t = Hashtbl.create 99
1 Like

Thanks a lot! It worked.