Referring to module types defined in top level files
In OCaml, if your project has a file named code.ml, you can reference it in other files using the Code module name. I was wondering if you defined the .mli file, if you could refer to the signature it defines in a similar way. For example, if you have a file wow.mli and you might have another file with a declaration
module Func(St : Wow) = struct ... end
Is there a way to do something along these lines?
+3
source to share