我a.ml这样的: module type ASig =
sig
val do_something : unit -> int;;
end ;;
module A:ASig =
struct
let do_something() = 1;;
let do_secrectly() = 2;;
end;;
所以我模块A的界面
下面是一个例子接口test.mli,与ocamldoc风格的注释说: (** ocamldoc module comment *)
open MissingModule;;
(** ocamldoc function comment *)
val test : unit;;
如果我运行命令ocamldoc test.mli,我得到以下错误: File "test.mli", line 2
我想在ocamldoc中引用一个类型构造函数。 例如: type x = Awesome | Boring
后来我们想引用一个构造函数的一些文档: (** {!Awesome} is a really great constructor for {!x}. You should definitely use it instead of {!Boring}. *)
ocamldoc抱怨: W