From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id F3CC3BBAF for ; Wed, 3 Sep 2008 08:42:59 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlMFABHPvUjBMjI+/2dsb2JhbACBZYgvq3JigQc X-IronPort-AV: E=Sophos;i="4.32,320,1217800800"; d="scan'208";a="28750055" Received: from haydn2002.u-bourgogne.fr ([193.50.50.62]) by mail4-smtp-sop.national.inria.fr with ESMTP; 03 Sep 2008 08:42:59 +0200 Received: from alcazar.inria.fr (guesdon@hydroptere.u-bourgogne.fr [193.52.236.56]) by haydn2002.u-bourgogne.fr (8.13.8/8.13.8) with ESMTP id m836gu6O022806; Wed, 3 Sep 2008 08:42:56 +0200 Date: Wed, 3 Sep 2008 08:48:50 +0200 From: Maxence Guesdon To: Jan Kybic Cc: Caml Subject: Re: [Caml-list] Another question on OcamlDoc Message-ID: <20080903084850.22daa88d@alcazar.inria.fr> In-Reply-To: <8763pe7lxp.fsf_-_@fel.cvut.cz> References: <1220356028.6406.33.camel@Blefuscu> <1220357131.6406.38.camel@Blefuscu> <8763pe7lxp.fsf_-_@fel.cvut.cz> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable X-Miltered: at haydn02.u-bourgogne.fr with ID 48BE31F0.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Scanned-By: MIMEDefang 2.63 on 193.50.50.62 X-Spam: no; 0.00; maxence:01 guesdon:01 maxence:01 guesdon:01 ocamldoc:01 ocamldoc:01 dependencies:01 compilation:01 -rectypes:01 ocamlc:01 ocaml:01 ocamlopt:01 ocaml:01 -pp:01 ocamlc:01 On Tue, 02 Sep 2008 14:48:50 +0200 Jan Kybic wrote: > > And while I'm asking complex questions, can anyone think of a way of > > asking OCamlDoc to resolve [string] to [String.t], ['a list] to ['a > > List.t], ['a array] to ['a Array.t], etc? >=20 > Let me add another couple of questions about OcamlDoc. I am sorry if > this is a common knowledge. >=20 > - how can I tell OcamlDoc to only process some files? > Actually, the question is rather how to make OcamlDoc ignore the > unresolved dependencies and "Unbound type constructor" errors. Does it stop ocamldoc or does is end in elements not linked in the final doc ? If it stops ocamldoc, then this is a compilation problem. Make sure you give the same options (-I, -rectypes, ...) to ocamldoc than to ocamlc. In th second case, you can use the -hide-warnings option. >=20 > [Sometimes it is as if OcamlDoc and Ocaml did not parse the files > in the same way - a program which compiles with ocamlopt gives me=20 > "Unbound type constructor errors" with ocamldoc. I will try to > reduce my code into a simple case to post it here later.] >=20 > - how can I tell OcamlDoc to run a preprocessor on the file first? > (I am using ocaml+twt) Use the -pp option of ocamldoc, which works the same way as for ocamlc. Regards, Maxence --=20 Maxence Guesdon http://yquem.inria.fr/~guesdon/ Service Exp=E9rimentation et D=E9veloppements https://devel.inria.fr/rocq/ INRIA Paris-Rocquencourt http://www.inria.fr/rocquencourt/