Compile Reason With An OCaml Package Using Dune
Last updated
Was this helpful?
Last updated
Was this helpful?
In , I showed how to compile a basic ReasonML file as a native executable using Dune.
Any non-trivial program will likely involve pulling in an OCaml dependency. For example, you may want to pull in . Assuming this package is available, whether you've manually downloaded it via or used something like , you'll want to let Dune know that Lwt is an available library.
The modules in the Lwt package will now be globally available to your Reason code.
When Dune builds your code, it will include and compile Lwt.
See a .