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

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

Android Gson.fromJson error -