From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA28634; Wed, 30 Jan 2002 10:01:36 +0100 (MET) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA28283 for ; Wed, 30 Jan 2002 10:01:35 +0100 (MET) Received: from iona.labri.fr (iona.labri.fr [147.210.8.143]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g0U91Yv06306 for ; Wed, 30 Jan 2002 10:01:34 +0100 (MET) Received: from localhost (localhost.localdomain [127.0.0.1]) by iona.labri.fr (Postfix) with ESMTP id 93E4B7E23 for ; Wed, 30 Jan 2002 10:01:33 +0100 (CET) Received: from serveur3.labri.fr (serveur3.labri.fr [147.210.8.180]) by iona.labri.fr (Postfix) with ESMTP id D41007DA0 for ; Wed, 30 Jan 2002 10:01:32 +0100 (CET) Received: (from vanicat@localhost) by serveur3.labri.fr (8.11.6/8.11.6) id g0U91WK13239; Wed, 30 Jan 2002 10:01:32 +0100 X-Authentication-Warning: serveur3.labri.fr: vanicat set sender to vanicat@labri.u-bordeaux.fr using -f To: caml-list@inria.fr Subject: Re: [Caml-list] module type constraints References: <20020129125545.T39799-100000@fledge.watson.org> From: Remi VANICAT In-Reply-To: <20020129125545.T39799-100000@fledge.watson.org> Date: 30 Jan 2002 10:01:32 +0100 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.104 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by AMaViS perl-11 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Patrick M Doane writes: > The [> `A] type has an implicit type variable which must be bound on the > left hand side. This should work: > > type 'a t = 'a constraint 'a = [> `A] not in the case of the "with type" : module type Titi = sig type t end;; module Blip (T:Titi with type t = 'a constraint 'a = [> `A]) = struct end;; -- Rémi Vanicat vanicat@labri.u-bordeaux.fr http://dept-info.labri.u-bordeaux.fr/~vanicat ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr