in testmodule.ml file
module TestModule = struct type my_type = MyType1 | MyType2 end
How can I use TestModule at the top level?
after "ocamlc -c testmodule.ml" (this generated testmodule.cmo / cmi)
I tried "open TestModule", but the error "unbound module TestModule" occurred.
Objective Caml version 3.10.0 # open TestModule;; Unbound module TestModule
Then I tried to make the top level with this module. but...
indi@www :~/std/toq$ ocamlmktop -o mytop testmodule.ml indi@www :~/std/toq$ ./mytop Objective Caml version 3.10.0
What can I do to use my TestModule ???
source share