From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id A5500BC37 for ; Thu, 17 Dec 2009 12:36:02 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ak8EAOemKUuBrw8Bh2dsb2JhbACZAIJSAQEBCgsIBxW6CYQtBA X-IronPort-AV: E=Sophos;i="4.47,411,1257116400"; d="scan'208";a="42217514" Received: from lri.lri.fr ([129.175.15.1]) by mail1-smtp-roc.national.inria.fr with ESMTP; 17 Dec 2009 12:35:53 +0100 Received: from localhost (localhost [127.0.0.1]) by lri.lri.fr (Postfix) with ESMTP id 4E1E7C0084; Thu, 17 Dec 2009 12:35:53 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at lri.fr Received: from lri.lri.fr ([127.0.0.1]) by localhost (lri.lri.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XtXO-krps7hq; Thu, 17 Dec 2009 12:35:53 +0100 (CET) Received: from smtp-ng.lri.fr (smtp-ng [129.175.3.73]) by lri.lri.fr (Postfix) with ESMTP id 38EC2C0024; Thu, 17 Dec 2009 12:35:53 +0100 (CET) Received: from [129.175.4.238] (lri4-238 [129.175.4.238]) by smtp-ng.lri.fr (Postfix) with ESMTP id 34D1B120069; Thu, 17 Dec 2009 12:35:53 +0100 (CET) Message-ID: <4B2A1784.2060008@lri.fr> Date: Thu, 17 Dec 2009 12:35:32 +0100 From: Romain Bardou User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707) MIME-Version: 1.0 To: Basile STARYNKEVITCH Cc: caml-list Subject: Re: [Caml-list] Module abbreviation References: <4B27BBB4.50006@bardou.fr> <4B27C100.1090200@starynkevitch.net> In-Reply-To: <4B27C100.1090200@starynkevitch.net> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; lri:01 abbreviation:01 basile:01 mli:01 mli:01 ocamlc:01 cmo:01 wrote:01 wrote:01 caml-list:01 caml-list:01 ast:02 ast:02 output:02 seems:03 Basile STARYNKEVITCH wrote: > Romain Bardou wrote: >> Hello, dear Caml-list, >> >> I have a file ast.mli. It has no .ml implementation as it contains only >> type definitions. > > > Then you should name that file ast.ml. Last time I tested (more than a > year ago) n ast.ml file without corresponding ast.mli file is handled as > if ast.mli was the output of ocamlc -i ast.ml. > > Regards Yes, this seems to be the easiest way. It's too bad that this implies having a .cmo to link against just for some type definitions, though. Thanks again, -- Romain Bardou