Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dune utop some executable

For an single file executable, how can I load it in dune utop ?

Precisely, on a project with a library in a directory lib and a corresponding dune file, I can launch dune utop lib then open Lib.MyModule and this will load the file MyModule.ml.

What would be the equivalent for a project with no subdirectory, and the following files at its root, a dune file

(executable
  (name auth)
  (libraries ezjsonm cryptokit))

and a file auth.ml

let hi = "value"

where I would like to load the values from that file in dune utop

like image 500
nicolas Avatar asked Dec 12 '25 07:12

nicolas


1 Answers

This is not supported by dune currently. You need to have a lib to use dune utop. It is a bit unfortunate.

like image 147
Louis Roché Avatar answered Dec 14 '25 03:12

Louis Roché



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!