This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1 @@
(library (name mylib))

View file

@ -0,0 +1,7 @@
By default, dune utop tries to make a toplevel for the current directory:
$ echo 'Stdlib.exit 0;;' | dune utop . -- -init "" | grep -v 'version'
Enter "#help;;" for help.
Init file not found: "".
#

View file

@ -0,0 +1 @@
(library (name private_lib_a))

View file

@ -0,0 +1,14 @@
Utop will load libs recursively:
$ echo 'Stdlib.exit 0;;' | dune utop . -- -init "" | grep -v 'version'
Enter "#help;;" for help.
Init file not found: "".
#
The message where the library path does not exist is different:
$ dune utop does-not-exist . -- -init ""
Error: cannot find directory: does-not-exist
[1]