如果没有 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
库做到这一点,很确定当我走到那一步时我会想自杀。
沙丘 doesn't support BuckleScript ;据我所知,bsb
不支持任何 OCaml 测试工具(ppx_inline_test、ppx_expect)或 ppx_deriving 插件……我在这里束手无策。帮我弄清楚如何实际使用 BuckleScript。
最佳答案
我没试过,但下面应该可以。
bsc -c 测试.mli 测试.ml
关于compiler-errors - 如何在 BuckleScript 中编译带有接口(interface)的文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51350612/