compiler-errors - 如何在 BuckleScript 中编译带有接口的文件?
问题描述
没有bsb
,如何编译一个不合格的.ml
文件?
$ touch test.ml
$ touch test.mli
$ bsc test.ml
File "test.ml", line 1:
Error: Could not find the .cmi file for interface test.mli.
我什至还没有尝试用ocamlfind
图书馆做到这一点,很确定当我走到那一步时我会想自杀。
Dune不支持 BuckleScript;bsb
据我所知,不支持任何 OCaml 测试工具(ppx_inline_test、ppx_expect)或 ppx_deriving 插件……我在这里束手无策。帮助我弄清楚如何实际使用BuckleScript。
解决方案
我没有尝试,但下面应该可以工作。
bsc -c test.mli test.ml
推荐阅读
- c - Fibonacci Sequence C program error
- php - PHP如何使用form-datalist在db中输入数据?
- angular - 在 Kendo UI 中导出受保护的 PDF 文件
- linux - 在 CentOS 上更改 PGDATA
- java - 无法使用 Appium Java 在日历中选择未来日期
- module - Does the main kernel "make" command also make modules internally?
- java - Java 是否提供任何库来找出数组中出现频率最高的数字?
- sass - 无法通过页面 css 文件向“body”标签添加值
- java - I am little confuse in different Collection 和 Collections 和有什么不一样?
- http - 如何在工件中禁用 HTTP