Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: David House <dhouse@janestreet.com>
To: Gabriel Kerneis <kerneis@pps.jussieu.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Recursive polymorphic variants
Date: Tue, 10 Apr 2012 14:57:37 +0100	[thread overview]
Message-ID: <CAK=fH+hzpMQfnxe6Be-G5A_r-TpVZcyaoi3nwEPndE8dpt=7CQ@mail.gmail.com> (raw)
In-Reply-To: <20120410135150.GD27094@kerneis.info>

On Tue, Apr 10, 2012 at 2:51 PM, Gabriel Kerneis <kerneis@pps.jussieu.fr> wrote:
> Is there any work-around?

Depending on your requirements, just wrapping up the recursive copy of
[t] in another constructor might do:

type t = [ `A of [ `B | `C of t ]]

I don't know why your original example is disallowed.

  reply	other threads:[~2012-04-10 13:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-10 13:51 Gabriel Kerneis
2012-04-10 13:57 ` David House [this message]
2012-04-10 14:39   ` Romain Bardou

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='CAK=fH+hzpMQfnxe6Be-G5A_r-TpVZcyaoi3nwEPndE8dpt=7CQ@mail.gmail.com' \
    --to=dhouse@janestreet.com \
    --cc=caml-list@inria.fr \
    --cc=kerneis@pps.jussieu.fr \
    /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