caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* annotating nested modules with ocamldoc
@ 2007-01-06 15:22 Ian Zimmerman
  2007-01-06 15:37 ` [Caml-list] " Philippe Wang
  0 siblings, 1 reply; 6+ messages in thread
From: Ian Zimmerman @ 2007-01-06 15:22 UTC (permalink / raw)
  To: caml-list

Given the following files:

(* Foo.mli *)

module type BOO = sig
  (** workaround: put documentation here *)
  val boo : int -> int
end

module Boo : BOO

(* Foo.mli ends *)




(* Foo.ml *)

let internal_goo i = i + 1

module type BOO = sig
  val boo : int -> int
end

module Boo : BOO = struct
  let boo i = internal_goo (i + 1)
end

(* Foo.ml ends *)


how do I produce an ocamldoc set *with* Foo.Boo.boo but *without*
Foo.internal_goo ?

So far, the only way I've found is to only process the mli file with
ocamldoc and attach an annotation in the signature in the indicated
place, but that is awkward when I want to make a cross-reference (I
have to reference the signature instead of the structure).  The
problem is that when processing a ml file, the granularity of what is
included is one of two extremes: either everything, or just stuff
that's declared in the corresponding mli file, and the latter by
definition excludes members of modules :-(


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

end of thread, other threads:[~2007-01-06 16:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-06 15:22 annotating nested modules with ocamldoc Ian Zimmerman
2007-01-06 15:37 ` [Caml-list] " Philippe Wang
2007-01-06 15:57   ` Ian Zimmerman
2007-01-06 16:07     ` Philippe Wang
2007-01-06 16:12     ` Daniel Bünzli
2007-01-06 16:38       ` Ian Zimmerman

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).