From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 F11E8BBAF for ; Wed, 6 Jan 2010 07:39:56 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkgBAA+/Q0vRVd+/kGdsb2JhbACRR4lYPwEBAQEJCQwHEwOqHIEyhTaGKgECAwWEKwQ X-IronPort-AV: E=Sophos;i="4.49,227,1262559600"; d="scan'208";a="44262001" Received: from mail-iw0-f191.google.com ([209.85.223.191]) by mail1-smtp-roc.national.inria.fr with ESMTP; 06 Jan 2010 07:39:56 +0100 Received: by iwn29 with SMTP id 29so10278363iwn.1 for ; Tue, 05 Jan 2010 22:39:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=pqOCHEJU4cJ016B8qYPEHR5zt0A1X3P7dwdwOj17HnE=; b=wJvgM+DRGvbFvML2iJy2bxIF9LXd27MhKw143D2+eRFNqEtLuNuQsM7PYf9j0vCBHQ 4bpJm/yZYFx63+CaMC9LQzUnQQQPWIlUs2FO4WwK6GvPHTlQNNWQb/htWeqSqk3zB8zM 96z2HewAYEFf39rryuKIvEWHVOgb2ALdvWKyE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=yDMUoWJujuF9dad5FQZ0v9j/1OmWQ1kOAKb/UcU3vIkqm51Sjsr0psKsSSTK2k10Er 5Lx/am5jtKI3+uC+t4Wf7Q0wbv3YdWB4YYnieyiW7rCQwBFTiomAjHcMdzMRsTkaA8HS BS/t0xu2g0qmlrpKeVd0I2C7PvjqoMhgHu/Vw= Received: by 10.231.59.129 with SMTP id l1mr110697ibh.0.1262759995312; Tue, 05 Jan 2010 22:39:55 -0800 (PST) Received: from ?192.168.0.11? (adsl-70-243-156-249.dsl.stlsmo.swbell.net [70.243.156.249]) by mx.google.com with ESMTPS id 21sm19277084iwn.2.2010.01.05.22.39.53 (version=SSLv3 cipher=RC4-MD5); Tue, 05 Jan 2010 22:39:54 -0800 (PST) Message-ID: <4B443038.5020204@gmail.com> Date: Wed, 06 Jan 2010 00:39:52 -0600 From: Edgar Friendly User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8pre) Gecko/20091228 Shredder/3.0.1pre MIME-Version: 1.0 To: caml-list@yquem.inria.fr Subject: Error: In the definition of t, type ('a, 'b) t should be ('b, 'a) t Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; edgar:98 parameters:03 explanation:06 suggestions:07 definition:07 definition:07 error:12 error:12 should:13 should:13 type:14 type:14 what's:14 what's:14 thanks:17 This error message was new to me, and I wondered what's going on and why: # type ('a, 'b) t = [ `A | `T of ('b, 'a) t ];; Error: In the definition of t, type ('a, 'b) t should be ('b, 'a) t I can get unhelpful suggestions through foolishness with three type parameters: # type ('a, 'b, 'c) t = [ `A | `T of ('a, 'c, 'b) t | `V of ('b, 'c, 'a) t];; Error: In the definition of t, type ('a, 'b, 'c) t should be ('c, 'a, 'b) t # type ('c, 'a, 'b) t = [ `A | `T of ('a, 'c, 'b) t | `V of ('b, 'c, 'a) t];; Error: In the definition of t, type ('a, 'b, 'c) t should be ('b, 'c, 'a) t Any explanation of what's going on? Thanks, E