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=1.0 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 8DD25BC69 for ; Thu, 4 Oct 2007 16:09:53 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAKSQBEfAXQInemdsb2JhbACOOAEBCQo X-IronPort-AV: E=Sophos;i="4.21,230,1188770400"; d="scan'208";a="2377039" Received: from concorde.inria.fr ([192.93.2.39]) by mail2-smtp-roc.national.inria.fr with ESMTP; 04 Oct 2007 16:09:50 +0200 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l94E9m1d023562 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Thu, 4 Oct 2007 16:09:53 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAKSQBEfRVYT3kmdsb2JhbACOOAEBAgcEBCc X-IronPort-AV: E=Sophos;i="4.21,230,1188770400"; d="scan'208";a="3751550" Received: from an-out-0708.google.com ([209.85.132.247]) by mail3-smtp-sop.national.inria.fr with ESMTP; 04 Oct 2007 16:09:48 +0200 Received: by an-out-0708.google.com with SMTP id c24so26886ana for ; Thu, 04 Oct 2007 07:09:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=MvDRzBm+8kWZCcWrAM/00vgxD/gXl6L3rZKJglnbJ5k=; b=kxQ97RAfzaltagaew31HMnnSpB66ZZIcEtbVbjVS1L2Ni1ZqwWqlgo4Qh/vCAG0A8rSf/n4MT1YmQGO8uKNPBVu069Sv/uVgxRWe2B2B28S/X5K1ljuhr9k8UwC08NIa2CfwqcAvbZeh3R7M48lK6gzu9g6QZgUsf+scjmdUe+g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cZOxBRAPcIa/AR+XeXuzdel8zVY9SkLThEqE3lVpFHmEBD5cy27tZpC/9PYXKVOAwCfHCVf01k6Pe1mOm/xghdcOw8C/WC2SR78jQOW49QilD8wOiTXXBGvEhEqRZh7UFxX046pEWTmm5EUeyvRjxgVIE1j70Wp8YyqKMBw7VJM= Received: by 10.142.105.14 with SMTP id d14mr776936wfc.1191506986701; Thu, 04 Oct 2007 07:09:46 -0700 (PDT) Received: by 10.142.104.13 with HTTP; Thu, 4 Oct 2007 07:09:46 -0700 (PDT) Message-ID: <875c7e070710040709x3cbae411p9cc40e932571470d@mail.gmail.com> Date: Thu, 4 Oct 2007 10:09:46 -0400 From: "Chris King" To: "David Teller" Subject: Re: [Caml-list] Importing module signatures ? Cc: OCaml In-Reply-To: <1191500391.6118.23.camel@Blefuscu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1191500391.6118.23.camel@Blefuscu> X-Miltered: at concorde with ID 4704F42C.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; univ-orleans:01 foo:01 foo:01 mli:01 sig:01 mli:01 struct:01 o'caml:01 mimuw:01 ocaml:01 rainbow:98 wrote:01 signatures:01 caml-list:01 caml-list:01 On 10/4/07, David Teller wrote: > It seems that String is the name of the module structure itself rather > than its signature. But what is the name of the signature ? The relationship between the foo.ml and foo.mli file is exactly this: module Foo: sig end = struct end i.e., the .mli is not given a name. There is a patch to support what you want to do here [1], using a new statement "import" to include the signature from an .mli file... it's one of a handful [2] [3] of patches from Piotr Wieczorek that I'd love to see make it into the official tree, but I haven't heard from the O'Caml dev team one way or the other. - Chris [1] http://rainbow.mimuw.edu.pl/~pw189451/ocaml/extsig.patch [2] http://caml.inria.fr/pub/ml-archives/caml-list/2006/12/c7461312202053f2213a9bb33206fcb8.en.html