opam - Difference between module and package Ocaml -


i'm trying follow stackoverflow answer located in post:

what best module httprequest in ocaml

and i'm running in problems. when trying run single file

open lwt ;;  

i getting , error saying unbound module. have run following opam instruction:

opam install lwt 

and did install correct package.

so think problem difference between module , package, don't understand. looking @ question possible answer, wasn't sure if needed.

unbound modules in ocaml

thanks input guys, i'm new ocaml , i'm trying learn ins , outs of building something.

to use "package", must tell compiler explicitly. unbound module in ocaml means 1 of 2 things: made typo of module name, or failed set proper module search path. compiler options use?

if use ocamlfind, compilation should like:

ocamlfind ocamlc -package lwt -c mymodule.ml

this instructs compiler try find modules in lwt package installation directory, in addition default ones.

if not use ocamlfind.... well, use ocamlfind.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -