File: include2.ml

package info (click to toggle)
ocaml-odoc 3.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,008 kB
  • sloc: ml: 60,567; javascript: 2,572; sh: 566; makefile: 31
file content (24 lines) | stat: -rw-r--r-- 458 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
(** Comment about X that should not appear when including X below. *)
module X = struct
  type t = int
end

include X

module Y = struct
  (** Top-comment of Y. *)

  type t
end

module Y_include_synopsis = struct
  (** The [include Y] below should have the synopsis from [Y]'s top-comment
      attached to it. *)

  include Y
end

module Y_include_doc = struct
  include Y
  (** Doc attached to [include Y]. [Y]'s top-comment shouldn't appear here. *)
end