【发布时间】:2011-02-03 06:40:34
【问题描述】:
我有一个文件 context.ml,其中定义了地图
module CtxMap = Map.make(struct type t = int let compare = compare end)
还有一个函数map_get,类型为CtxMap.key -> 'a CtxMap.t -> 'a
如何将 CtxMap 声明添加到 context.mli 文件? 因为 mli 文件不能包含代码,所以我找不到办法。
【问题讨论】:
标签: ocaml