From: Ashish Agarwal <agarwal1975@gmail.com>
To: Caml List <caml-list@inria.fr>
Subject: [Caml-list] type synonym for polymorphic variant
Date: Thu, 1 Oct 2015 17:41:40 -0400 [thread overview]
Message-ID: <CAMu2m2+ea9Dr83LpFsU3LEFs_qu0mfW7GGF9QCxrX2BMN0Qrvg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 364 bytes --]
I've been doing this in some code for years:
type s = [`A | `B]
type t = [s]
but just discovered it works only because the code was passing through
camlp4. Without camlp4, it fails. You can try in utop with and without
doing #camlp4o.
Is there some way to get the above to work without camlp4? AFAICT, the
grammar allows it, so the normal parser is wrong here.
[-- Attachment #2: Type: text/html, Size: 487 bytes --]
next reply other threads:[~2015-10-01 21:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-01 21:41 Ashish Agarwal [this message]
2015-10-01 21:47 ` Haoyang Wang
2015-10-01 22:06 ` Ashish Agarwal
2015-10-01 22:23 ` Daniel Bünzli
2015-10-01 22:26 ` Ashish Agarwal
[not found] ` <CAJ_epFM9s64QY88MxPW2apF9wgnXTQiJgns9w_dTtVKyvxsGeA@mail.gmail.com>
2015-10-01 22:28 ` Ashish Agarwal
2015-10-01 22:35 ` Daniel Bünzli
2015-10-01 22:41 ` Ashish Agarwal
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=CAMu2m2+ea9Dr83LpFsU3LEFs_qu0mfW7GGF9QCxrX2BMN0Qrvg@mail.gmail.com \
--to=agarwal1975@gmail.com \
--cc=caml-list@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