From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id pABD8taJ017889 for ; Fri, 11 Nov 2011 14:08:55 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiYDAKcdvU6GnQCBk2dsb2JhbABDmjA0jzkiAQEBAQcLCwkUAyKBcgEBBToZGxsLGA0hFBgZPQmHb7gxg1GFSmMEpiY X-IronPort-AV: E=Sophos;i="4.69,494,1315173600"; d="scan'208";a="118329764" Received: from shiva.jussieu.fr ([134.157.0.129]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 11 Nov 2011 14:08:50 +0100 Received: from hydrogene.pps.jussieu.fr (hydrogene.pps.jussieu.fr [134.157.168.1]) by shiva.jussieu.fr (8.14.4/jtpda-5.4) with ESMTP id pABD8mO7010616 for ; Fri, 11 Nov 2011 14:08:49 +0100 (CET) X-Ids: 164 Received: by hydrogene.pps.jussieu.fr (Postfix, from userid 2065) id BE5E2C122F; Fri, 11 Nov 2011 14:08:47 +0100 (CET) Date: Fri, 11 Nov 2011 14:08:47 +0100 From: Pietro Abate To: caml-list@inria.fr Message-ID: <20111111130847.GA10832@pps.jussieu.fr> References: <20111110205259.GZ3413@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111110205259.GZ3413@localhost> X-Operating-System: GNU/Linux User-Agent: Mutt/1.5.20 (2009-06-14) X-Miltered: at jchkmail.jussieu.fr with ID 4EBD1E60.005 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 4EBD1E60.005/134.157.168.1/hydrogene.pps.jussieu.fr/hydrogene.pps.jussieu.fr/ Subject: Re: [Caml-list] ocamlbuild, ocamldoc and module packs Hello. As far as I know ocamldoc doesn't play very well with -pack. There is a very old bug on mantis about this. I'm in a situation that is worst then yours where I use pack to hide modules with the same name as in ModuleOne/A and ModuleTwo/A and ocamldoc refuses altogether to generate doc for both modules. I've not found a solution neither for my problem, or more in general for the one you describe below. I think the good ppl that put Batteries together had similar issues. If you look at the Batteries source there is a lot of code aimed at solving this problem by effectively creating new source files that can be properly digested by ocamldoc. For what I gathered is pretty specific to their case, but probably you can use it as an example to write an appropriate ocamldoc plugin. Maybe the recent release of Argot by XC solves some of these problem (just a wild guess, I didn't look at it very carefully). Hope this helps. p On Thu, Nov 10, 2011 at 09:52:59PM +0100, Guillaume Yziquel wrote: > Hi. > > I've been trying recently to use ocamldoc with ocamlbuild on module > packs. > > I have a prog.odocl file containing things like > > ModuleOne/A > ModuleOne/B > ModuleTwo/C > ModuleTwo/D > > and the ocamldoc documentation has at its root the module A, B, C and D. > Not ModuleOne and ModuleTwo. > > Replacing prog.odocl naively by > > ModuleOne > ModuleTwo > > fails with a rather verbose ocamldoc solver error. > > My _tags file contains something like: > > : for-pack(ModuleOne) > : for-pack(ModuleTwo) > > Is there any way to make ocamldoc behave more nicely with respect to > module packs (if possible via ocamlbuild)? > > -- > Guillaume Yziquel > > -- > Caml-list mailing list. Subscription management and archives: > https://sympa-roc.inria.fr/wws/info/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs -- ---- http://en.wikipedia.org/wiki/Posting_style