ModnameSourceModule name.
the module name is a string that respects certain predicates. It is impossible to have any other characters than:
'a' .. 'z''A' .. 'Z''0' .. '9''_', '-' or '\''NOTE: The dash is accepted even if it is normally prohibited. You can compile a module my-module.ml. However, the compiler issues a warning. In order to be the least restrictive, we accept this character.
The module name must start with a letter.
NOTE: The name of a module type can start with a non-capital letter:
module type foo = sig endThe type of module names.
of_string str validates the given str as a module name or return an error with an explanation.
Capitalize string
v str calls of_string. It raises an Invalid_argument instead of returning an error.