From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p5NGk6TX021604 for ; Thu, 23 Jun 2011 18:46:06 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgMCAINsA07RVdW2kGdsb2JhbAA8AQMShEmiVwgUAQEBAQkJDQcUBCGrfYwBPoJHhFM5iGcBAQMGgSWDeIEKBJFyiSyCVDyDUw X-IronPort-AV: E=Sophos;i="4.65,414,1304287200"; d="scan'208";a="111802698" Received: from mail-yx0-f182.google.com ([209.85.213.182]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 23 Jun 2011 18:46:00 +0200 Received: by yxl31 with SMTP id 31so1257124yxl.27 for ; Thu, 23 Jun 2011 09:45:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=bHkQe90oATmSpzF1vwwCLP8KJAyxk2+JJitTn7ctgWM=; b=dobcoZ8f/CzzqPpRQz0gSs744EywMtA0XkorH79nNfpbhqxK12nkjfEB0w5MfasgEW xLRMlzylW3pLx6sWGdLQZUByhTgsWmxaqVie4u9K0VHYUiNvCdQc+UygA4tvQVKDEkS5 DBW24SyygKWFER3V39CkuZUoG8VnwP/SCC7AM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=BbTfAdgml9HhUBfUMW4AZEapdPn/83rnxnIB0YLJ4UTDJ7XVSKhc02FmKScdaKbwqM oDeYoQuNdl3EWNqh//d9YW/UXkAcgztkFScuKwY07lQdtfwsUR3NhiqZZb0BfYXOVhbf JF7JSO/jdT6GoVJ9za6EqeigpoWhQYTVY/5Zs= MIME-Version: 1.0 Received: by 10.101.1.2 with SMTP id d2mr2493451ani.9.1308847559685; Thu, 23 Jun 2011 09:45:59 -0700 (PDT) Received: by 10.100.215.20 with HTTP; Thu, 23 Jun 2011 09:45:59 -0700 (PDT) In-Reply-To: References: Date: Thu, 23 Jun 2011 17:45:59 +0100 Message-ID: From: Radu Grigore To: caml-list Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id p5NGk6TX021604 Subject: [Caml-list] Re: module name alias and typing Correction: misplaced "struct" keyword. On Thu, Jun 23, 2011 at 5:43 PM, Radu Grigore wrote: > However, if the definition of Int is moved inside Util then the > type-checker complaints that Util.IntSet.t and U.IntSet.t are > incompatible.  module Util = struct    module Int = struct type t = int let compare = compare end    module IntSet = Set.Make (Int)  end  let a = Util.IntSet.singleton 0  module U = Util  let b = U.IntSet.mem 0 a