I want to be able to define a type (say my_type) which can identify hashtables with strings as keys and mapped to integer values.
So, I tried

# type my_type = (string, int) Hashtbl.t;;

But, when I try

# let a = Hashtbl.create 100;;
val a : ('_a, '_b) Hashtbl.t = <abstr>
# Hashtbl.add a "A" 12;;
- : unit = ()
# a;;
- : (string, int) Hashtbl.t = <abstr>

The last line shows (string, int) Hashtbl.t = abstr instead of my_type. How can I make sure it gives me the type of the hashtable as my_type?

Edit
Report