我是ocaml的新手,已经定义了一个类型。 type options =
| Rock
| Paper
| Scissors
我也想定义一个选项列表。这就是我如何努力也 type opts = list options;
梅林给我这个错误,当我尝试过的选项文字列表到函数 任何想法?顺便说一句,我特别使用RationalML,但我认为不重要。 下面是翻译回oca
如果我有一个包含(.re)文件 module IntMap =
Map.Make {
type t = int;
let compare = compare;
};
type foo = IntMap.t string;
哪能的foo签名添加到接口的实现(.rei)文件?在与OCaml中的 module IntMap = Map.S with typ
https://facebook.github.io/reason/modules.html#modules-basic-modules I don’t see any import or require in my file; how does module resolution work?
Reason/OCaml doesn’t require you to write any impo