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.1 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 mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 77343BC69 for ; Mon, 24 Sep 2007 12:06:11 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAANUo90bAXQInemdsb2JhbACOGQIJCg X-IronPort-AV: E=Sophos;i="4.20,290,1186351200"; d="scan'208";a="1341258" Received: from concorde.inria.fr ([192.93.2.39]) by mail1-smtp-roc.national.inria.fr with ESMTP; 24 Sep 2007 12:06:11 +0200 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l8OA6AaG032165 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Mon, 24 Sep 2007 12:06:11 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAOQo90aWy9CN/2dsb2JhbAA X-IronPort-AV: E=Sophos;i="4.20,290,1186351200"; d="scan'208";a="16683889" Received: from riemann.rsise.anu.edu.au ([150.203.208.141]) by mail4-smtp-sop.national.inria.fr with ESMTP; 24 Sep 2007 12:06:09 +0200 Received: from localhost (localhost [127.0.0.1]) by riemann.rsise.anu.edu.au (Postfix) with ESMTP id B9F1F6BA28 for ; Mon, 24 Sep 2007 20:06:04 +1000 (EST) X-Virus-Scanned: Debian amavisd-new at rsise.anu.edu.au Received: from riemann.rsise.anu.edu.au ([127.0.0.1]) by localhost (backend2.rsise.anu.edu.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HrC0SIFwa+BB for ; Mon, 24 Sep 2007 20:05:59 +1000 (EST) Received: from pulp.rsise.anu.edu.au (pulp.rsise.anu.edu.au [150.203.208.49]) by riemann.rsise.anu.edu.au (Postfix) with ESMTP for ; Mon, 24 Sep 2007 20:05:59 +1000 (EST) Received: by pulp.rsise.anu.edu.au (Postfix, from userid 1560) id 0E479A0FFD3; Mon, 24 Sep 2007 20:05:59 +1000 (EST) Date: Mon, 24 Sep 2007 20:05:58 +1000 From: Pietro Abate To: ocaml ml Subject: include in rec module definition Message-ID: <20070924100558.GA3943@pulp.rsise.anu.edu.au> Mail-Followup-To: Pietro Abate , ocaml ml MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: GNU/Linux X-Organization: Research School of Information Science and Engineering (Australian National University) User-Agent: Mutt/1.5.13 (2006-08-11) X-Miltered: at concorde with ID 46F78C12.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; sig:01 sig:01 struct:01 struct:01 bug:01 ocaml:01 ocaml:01 bug:01 blog:98 blog:98 unbound:01 rec:01 rec:01 constructor:01 int:01 Hi all, the following piece of code works as expected, but if I specify module B1 as module rec B1 : sig ... end I get "Unbound type constructor s" module type A1 = sig type t end module B1 : sig type s = int include A1 with type t = s end = struct type s = int type t = int end The problem is even more evident here: module type A = sig type t end module rec B : sig type s = C.t include A with type t = s end = struct type s = { c : int } type t = { c : int } end and C : sig type t = { c : int } end = struct type t = { c : int } end This was a bug in Ocaml 3.07. Is this supposed to work in Ocaml 3.10 ? I was unable to find a reference in the bug tracking system. pietro -- ++ Blog: http://blog.rsise.anu.edu.au/?q=pietro ++ ++ "All great truths begin as blasphemies." -George Bernard Shaw ++ Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html