module Variants:sig
..end
This test is here to check the latex code generated for variants
type
s =
| |
A |
|||
| |
B |
(* | only B is documented here | *) |
| |
C |
type
t =
| |
A |
(* | doc for A.
With three paragraphs.
To check styling | *) |
| |
B |
(* | doc for B | *) |
type
u =
| |
A |
(* | doc for A | *) |
| |
B of |
(* | doc for B | *) |
Some documentation for u
type
w =
| |
A of |
(* | doc for A | *) |
||
| |
B of |
(* | doc for B | *) |
With records
type
z =
| |
A of |
(* | doc for A | *) |
| |
B of |
(* | doc for B | *) |
With args
type
a =
| |
A : |
(* | doc for A | *) |
Gadt notation
type
b =
| |
B |
(* | doc for B | *) |
Lonely constructor
type
no_documentation =
| |
A |
| |
B |
| |
C |
type
e =
| |
|
Empty variant