I use vscode+merlin to read OCaml code. Sometimes it can give me a type, but sometimes it only tell me that a type 'a, which is the same as telling me nothing. I have to guess a value's type by reading the code. Reading the code to conclude a value's type is important, but sometimes I doult if my guess is right.
So I want a method that can get the value's type at runtime, like reflection in Java or C#.
var a = 1;
Console.WriteLine(a.GetType());
Is there some way to do the same thing in OCaml?