I was excited to see that dune utop
would launch me into utop
with my application under development loaded. But then discovered that it actually didn’t do that because currently my app is just a main.ml
(with dune
and opam
meta data around it) that depends on some external libraries. Reading the documentation it says:
dune utop
DIR build and runutop
toplevel with libraries defined in DIR
So it would only load libraries that are defined in my app (of which there are none) – fine. But it surely would load all the external libraries that my code depends on? Turns out it does not. Altogether I have no clear picture what this does, how it is useful, and how to structure my project to make the most out of it.