I am reading an OCaml project recently, and I want to put the source files in utop so that I can do some experiments.
Suppose I have two amodule.ml files , bmodule.ml .
bmodule.ml will use the functions defined in amodule.ml , for example, bmodule use Amodule.anyfunction (), where any function () is defined in amodule.ml .
I want to put both of them in utop:
#directory "/directory contain amodule.ml and bmodule.ml" #use "amodule.ml" #use "bmodule.ml"
And this does not work, because Amodule is the base of the module name in the amodule.ml file, and, as I think, utop does not know these things. <w> So, how can I put these files in utop without changing the contents of the file?
ocaml ocamlbuild ocamlfind
Kun
source share