作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
如果没有 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/
我是一名优秀的程序员,十分优秀!