我是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