|
|
You can use dune to manage internal (as well as external) libraries. You'll just need a name and a list of dependencies (in the `libraries` field). |
|
|
|
... |
|
|
|
You can build your library using dune. |
|
The built library will reside under `_build/default/`. Relevant files are `.cma` (bytecode), `.cmxa` (native), and `.cmi` (the library's interface) |
|
You can use dune to launch utop with your library. |
|
|
|
You can also import all the code from a file by including directly in utop. |
|
You can also import a file as a module. |
|