Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ocaml dune utop一些可执行文件_Ocaml_Utop_Ocaml Dune - Fatal编程技术网

Ocaml dune utop一些可执行文件

Ocaml dune utop一些可执行文件,ocaml,utop,ocaml-dune,Ocaml,Utop,Ocaml Dune,对于单个文件可执行文件,如何将其加载到dune utop 确切地说,在目录lib中有一个库和相应的dune文件的项目上,我可以启动dune utop lib,然后打开lib.MyModule,这将加载文件MyModule.ml 如果一个项目没有子目录,并且根目录中有以下文件,即dune文件,那么它的等效性是什么 (executable (name auth) (libraries ezjsonm cryptokit)) 和一个文件auth.ml let hi = "value" 我想

对于单个文件可执行文件,如何将其加载到
dune utop

确切地说,在目录
lib
中有一个库和相应的
dune
文件的项目上,我可以启动
dune utop lib
,然后
打开lib.MyModule
,这将加载文件
MyModule.ml

如果一个项目没有子目录,并且根目录中有以下文件,即
dune
文件,那么它的等效性是什么

(executable
  (name auth)
  (libraries ezjsonm cryptokit))
和一个文件
auth.ml

let hi = "value"

我想在
dune utop

中加载该文件中的值,dune目前不支持此操作。您需要有一个库才能使用
dune utop
。这有点不幸。

nb:人们总是可以调用
#使用“somefile.ml”如果不依赖于其他LIB