From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by sympa.inria.fr (Postfix) with ESMTPS id EE6297F1C3 for ; Wed, 28 Nov 2012 04:29:35 +0100 (CET) Received-SPF: None (mail1-smtp-roc.national.inria.fr: no sender authenticity information available from domain of lambda.q.q@gmail.com) identity=pra; client-ip=209.85.215.54; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="lambda.q.q@gmail.com"; x-sender="lambda.q.q@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail1-smtp-roc.national.inria.fr: domain of lambda.q.q@gmail.com designates 209.85.215.54 as permitted sender) identity=mailfrom; client-ip=209.85.215.54; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="lambda.q.q@gmail.com"; x-sender="lambda.q.q@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail1-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-la0-f54.google.com) identity=helo; client-ip=209.85.215.54; receiver=mail1-smtp-roc.national.inria.fr; envelope-from="lambda.q.q@gmail.com"; x-sender="postmaster@mail-la0-f54.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmUCAO+DtVDRVdc2jWdsb2JhbAA8CQ6FVLo5CBYOAQEBAQkJCwkSBiOCHwEFOgYBOAEDDAEFBSElDwEEIAEFASITh3sDDwSgcI8thRAnDYlOAQUMjECELwOIWI0pjmQ/gVeBfUI X-IronPort-AV: E=Sophos;i="4.84,174,1355094000"; d="scan'208";a="183537990" Received: from mail-la0-f54.google.com ([209.85.215.54]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 28 Nov 2012 04:29:35 +0100 Received: by mail-la0-f54.google.com with SMTP id j13so17221761lah.27 for ; Tue, 27 Nov 2012 19:29:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=R+30qeH1h+OvlfrTfFPzq/0XjvXcshdxpBwu6W6xcZg=; b=eNNscNYLrDYcpI658bXZHC2ocxNo+lNhGPyQCKNETSIa1p1iElUoCz6ARcFAv2F86p t45/LvUbtXuH8/mcUq4v0/+YLlZAiQZtxmNVkPc4IgPmbNYdzfFQSMqpmt1w7Jgzn/wq GOGZNktqmB8fJazojaGX+k9rWgG7aPiHlebIfWgrTSDe3vqeCDmHO476b77wPuNr+e9n nErqw4K/svAizr1fqa9DSC2vek5jj3O5jXZ83ogKLPbHmFIa2hgBFg268fmOsLZC5+3C +yemvp31s1mKircOSfpb9SbN3bwfbc/cEw6UL970e2mbceomaPgyvk9DarlC1hyB8VYC LXAQ== Received: by 10.112.14.107 with SMTP id o11mr7480045lbc.98.1354073374475; Tue, 27 Nov 2012 19:29:34 -0800 (PST) Received: from golf.niidar.ru.niidar.ru ([178.176.188.42]) by mx.google.com with ESMTPS id m3sm7700263lbb.13.2012.11.27.19.29.32 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 27 Nov 2012 19:29:33 -0800 (PST) Sender: Ivan Gotovchits From: Ivan Gotovchits To: Jacques Garrigue Cc: caml-list@inria.fr References: <87ip8rwbsc.fsf@golf.niidar.ru> <1F656500-76AC-482F-BA08-A9BB8250D904@math.nagoya-u.ac.jp> Date: Wed, 28 Nov 2012 07:29:27 +0400 In-Reply-To: <1F656500-76AC-482F-BA08-A9BB8250D904@math.nagoya-u.ac.jp> (Jacques Garrigue's message of "Tue, 27 Nov 2012 23:08:00 +0900") Message-ID: <87sj7uxv54.fsf@golf.niidar.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Caml-list] phantom types and identity function Jacques Garrigue writes: > type u = {x:int} > type 'a t = u constraint 'a = [< `A | `B] Thanks Jacques, this workaround works fine! By the way, I've found another workaround, which dirty of course, but interesting: let f x = {x=x.x} works too.