ocamldoc

Why does ocamldoc fail on unbound modules?

折月煮酒 提交于 2019-12-10 14:32:37
问题 Here is an example interface test.mli , commented with ocamldoc-style comments: (** ocamldoc module comment *) open MissingModule;; (** ocamldoc function comment *) val test : unit;; If I run the command ocamldoc test.mli , I get the following error: File "test.mli", line 2, characters 0-9: Error: Unbound module MissingModule 1 error(s) encountered Why should a documentation generator care about unbound modules? 回答1: That's because ocamldoc fully qualifies type names. The file: open