Version française
Home     About     Download     Resources     Contact us    
Browse thread
ocamldoc, camlp4r and variant
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: tmp123@m...
Subject: ocamldoc, camlp4r and variant
Hello,

Please, when the following small source is passed to ocamldoc (ocamldoc 
-pp camlp4r -html foo.ml), the comment "another type" is not asigned to 
type "bar", but joined to the comment of B constructor in type "foo".

I've tried lots of variations, adding blank lines, empty comments, end 
comments, ... without success.

Please, knows someone what is wrong on it?

Thanks a lot.

foo.ml:
=======
(** a module *)

(** a type *)
type foo =
[ A (** a constructor *)
| B (** another constructor *)
];

(** another type *)
type bar =
[ C (** a constructor *)
| D (** another constructor *)
];