如果我有一个包含的实现 ( .re
) 文件
module IntMap =
Map.Make {
type t = int;
let compare = compare;
};
type foo = IntMap.t string;
如何将签名添加foo
到接口(.rei
)文件?类似于 OCaml 的
module IntMap = Map.S with type key = int
type foo = string IntMap.t
我希望它是
module IntMap =
Map.S {
type t = int;
};
type foo = IntMap.t string;
但这会导致{
.