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 mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 008787EE99 for ; Mon, 9 Dec 2013 18:25:02 +0100 (CET) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of lukstafi@gmail.com) identity=pra; client-ip=209.85.212.180; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="lukstafi@gmail.com"; x-sender="lukstafi@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of lukstafi@gmail.com designates 209.85.212.180 as permitted sender) identity=mailfrom; client-ip=209.85.212.180; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="lukstafi@gmail.com"; x-sender="lukstafi@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-wi0-f180.google.com) identity=helo; client-ip=209.85.212.180; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="lukstafi@gmail.com"; x-sender="postmaster@mail-wi0-f180.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvYCALj7pVLRVdS0lGdsb2JhbABZhBK5FYEnCBYOAQEBAQcLCwkSKoIcCQEBBAFAARseAwELBgUDAQc7IQEBEQEFARwGE4dvAQMJBqYUjFmDCYQeChknDWSGAxEBBQyMcYIahDMDlimBa4xag0wYKYRWOw X-IPAS-Result: AvYCALj7pVLRVdS0lGdsb2JhbABZhBK5FYEnCBYOAQEBAQcLCwkSKoIcCQEBBAFAARseAwELBgUDAQc7IQEBEQEFARwGE4dvAQMJBqYUjFmDCYQeChknDWSGAxEBBQyMcYIahDMDlimBa4xag0wYKYRWOw X-IronPort-AV: E=Sophos;i="4.93,859,1378850400"; d="scan'208";a="40104642" Received: from mail-wi0-f180.google.com ([209.85.212.180]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 09 Dec 2013 18:25:02 +0100 Received: by mail-wi0-f180.google.com with SMTP id hn9so4074377wib.7 for ; Mon, 09 Dec 2013 09:25:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=ajanetNZK5v0aGp/gSZ+yF/w0EfNTGlTaRupReRmrus=; b=ve8rJFvw+AtHoSCRZ1wKNLP5K1pR841fEuN1v/dayY22j4ek9iRMjkFIcAUOCBnens kdz+MDw0N1XBRIK+Se8pmSkqPEMlmA5ziTCIiOKIIEZRfepU26546Zti/u5Fnbh1WC7+ cBnGM4LIP6rZFfHIBSn+AuANdQ5Y/sTBpYNSm/9+JA2EaZi1uhgEc0eXCIw35BgQ1GxQ 19KKDgG2QNmoF1CuhMXe8RrvRVvo9dN8oLe/q0Icae7TJets5BT8pW29+pkilS4wq12I 47UEV55jRrc0tTpabGK7YkiZKxGdhFvMAZNIbTnBH17AaAyLiFCRcnMfODuOXTRi/oYR hF6A== X-Received: by 10.180.12.70 with SMTP id w6mr15361719wib.4.1386609901978; Mon, 09 Dec 2013 09:25:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.227.36.201 with HTTP; Mon, 9 Dec 2013 09:24:41 -0800 (PST) In-Reply-To: References: From: Lukasz Stafiniak Date: Mon, 9 Dec 2013 18:24:41 +0100 Message-ID: To: Caml Content-Type: multipart/alternative; boundary=001a11c223aca6499004ed1d46e7 Subject: Re: [Caml-list] Polymorphic recursion and GADTs --001a11c223aca6499004ed1d46e7 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Dec 9, 2013 at 6:16 PM, Lukasz Stafiniak wrote: > Hello, > > I am at a loss as to the difference between ['a.] syntax and [type a.] > syntax of introducing polymorphic recursion. I will provide some examples. > (Bear with me, they are automatically generated.) > [...] > Now to a more complex example. > In the complex example, the problem is not the difference between ['a.] syntax and [type a.] syntax, but polymorphic recursion and GADTs in OCaml generally. What type annotations do I need to provide? --001a11c223aca6499004ed1d46e7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On M= on, Dec 9, 2013 at 6:16 PM, Lukasz Stafiniak <lukstafi@gmail.com>= wrote:
Hello,

I am at a loss = as to the difference between ['a.] syntax and [type a.] syntax of intro= ducing polymorphic recursion. I will provide some examples. (Bear with me, = they are automatically generated.)
[...]
Now to a more complex example.

In the complex example, the problem is not=A0the diffe= rence between ['a.] syntax and [type a.] syntax, but polymorphic recurs= ion and GADTs in OCaml generally. What type annotations do I need to provid= e?
--001a11c223aca6499004ed1d46e7--