caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: Markus Mottl <markus.mottl@gmail.com>
Cc: OCaml List <caml-list@inria.fr>
Subject: Re: [Caml-list] a question about GADTs
Date: Fri, 15 Jun 2018 18:34:36 +0200	[thread overview]
Message-ID: <m2a7rwrotf.fsf@polytechnique.org> (raw)
In-Reply-To: <CAP_800rujga7GgLMcU_5PSgz2VuMRVrM98VvKaHJTwaqy4DMPQ@mail.gmail.com> (Markus Mottl's message of "Fri, 15 Jun 2018 11:21:10 -0400")

[-- Attachment #1: Type: text/plain, Size: 755 bytes --]

Hello Markus,

On 2018-06-15 11:21, Markus Mottl <markus.mottl@gmail.com> writes:

> I don't think that you can currently do this.  According to the manual
> entry for GADTs: "This return type must use the same type constructor as
> the type being defined, and have the same number of parameters."
>
> But I guess it would be a supportable feature to perform type substitutions
> until the above is satisfied if at all possible.  Substituting manually is
> probably the only thing you can do until then.

Thank you for your reply. I'll use the explicit form for the moment with
some comments on the side.

Best,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2018-05: 411.25, 2017-05: 409.65

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]

  reply	other threads:[~2018-06-15 16:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-15 14:34 Alan Schmitt
2018-06-15 15:21 ` Markus Mottl
2018-06-15 16:34   ` Alan Schmitt [this message]
2018-06-17  3:43 ` Chet Murthy
2018-06-17  6:39   ` Viet Le
2018-06-17  6:41     ` Julia Lawall
2018-06-17  9:50     ` Jesper Louis Andersen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2a7rwrotf.fsf@polytechnique.org \
    --to=alan.schmitt@polytechnique.org \
    --cc=caml-list@inria.fr \
    --cc=markus.mottl@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).