From: Stephane Glondu <steph@glondu.net>
To: caml-list@yquem.inria.fr
Subject: Union of polymorphic variants...
Date: Tue, 04 Dec 2007 13:38:31 +0100 [thread overview]
Message-ID: <47554A47.0@glondu.net> (raw)
Hi,
Why isn't possible to do the following?
type b = [`A of [`B of bool]]
type c = [`A of [`C of char]]
type a = [b|c]
I expect the last declaration to be equivalent to:
type a = [`A of [`B of bool | `C of char]]
Thanks,
--
Stephane Glondu
next reply other threads:[~2007-12-04 12:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-04 12:38 Stephane Glondu [this message]
2007-12-04 13:57 ` [Caml-list] " Jacques Garrigue
2007-12-04 14:33 ` Stephane Glondu
2007-12-05 2:17 ` Jacques GARRIGUE
2007-12-05 15:59 ` Stephane Glondu
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=47554A47.0@glondu.net \
--to=steph@glondu.net \
--cc=caml-list@yquem.inria.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