我正在尝试使用 Jane Street 的核心标准库和 Reason 语言前端进行编程。
所以我拿了corebuild
脚本并保存了一份副本,recorebuild
用. 但是我在处理一些简单的代码时遇到了麻烦。ocamlbuild
rebuild
这是失败的最小示例:
type t = Foo int | Bar;
let foobar f => switch f {
| Foo x => x
| Bar => 0
};
如果您尝试使用以下选项编译它,则添加的众多选项之一corebuild
:
rebuild -tag "ppx(ppx-jane -as-ppx)" test.byte
然后你得到这个错误:
File "", line 0:
Attribute `explicit_arity' was not used
Command exited with code 2.
这是什么意思?