I have a.ml
like this:
module type ASig =
sig
val do_something : unit -> int;;
end ;;
module A:ASig =
struct
let do_something () = 1;;
let do_secrectly () = 2;;
end;;
So for my module A, the interface should be only do_something()
.
But if I use ocamldoc -html a.ml
, although the module sig declares the interfact, the doc still exposes all functions in module A like:
module A: sig .. end
val do_something : unit -> int
val do_secrectly : unit -> int
How should I use ocamldoc
so that all documents are based on module sig
?