caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* ocamldoc and module signature
@ 2008-12-22 15:44 Philippe Veber
  2009-01-05  8:00 ` [Caml-list] " Maxence Guesdon
  0 siblings, 1 reply; 2+ messages in thread
From: Philippe Veber @ 2008-12-22 15:44 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 399 bytes --]

Hi,

  I'm a little bit puzzled with the behavior of ocamldoc (3.10.2 and 3.11.0)
on the following file :

a.ml :
====

module M : sig
  val l : int list
end
=
struct
  let l = []
end

The HTML documentation generated from the following call

ocamldoc -html a.ml

will describe A.M.l as a 'a list, while it's been constrained to int list by
the signature. Is this the expected behavior ?

Philippe.

[-- Attachment #2: Type: text/html, Size: 557 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] ocamldoc and module signature
  2008-12-22 15:44 ocamldoc and module signature Philippe Veber
@ 2009-01-05  8:00 ` Maxence Guesdon
  0 siblings, 0 replies; 2+ messages in thread
From: Maxence Guesdon @ 2009-01-05  8:00 UTC (permalink / raw)
  To: caml-list

On Mon, 22 Dec 2008 16:44:26 +0100
"Philippe Veber" <philippe.veber@googlemail.com> wrote:

> Hi,

Hello,

>   I'm a little bit puzzled with the behavior of ocamldoc (3.10.2 and 3.11.0)
> on the following file :
> 
> a.ml :
> ====
> 
> module M : sig
>   val l : int list
> end
> =
> struct
>   let l = []
> end
> 
> The HTML documentation generated from the following call
> 
> ocamldoc -html a.ml
> 
> will describe A.M.l as a 'a list, while it's been constrained to int list by
> the signature. Is this the expected behavior ?

No, it's not. Can you fill a bug report ?
Thanks.

Regards,

-- 
Maxence Guesdon                           http://yquem.inria.fr/~guesdon/
Service Expérimentation et Développements https://devel.inria.fr/rocq/
INRIA Paris-Rocquencourt                  http://www.inria.fr/rocquencourt/





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-05  8:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-22 15:44 ocamldoc and module signature Philippe Veber
2009-01-05  8:00 ` [Caml-list] " Maxence Guesdon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).