caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Ashish Agarwal <agarwal1975@gmail.com>
To: Thomas Refis <thomas.refis@gmail.com>
Cc: Haoyang Wang <hywang@pobox.com>, Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] type synonym for polymorphic variant
Date: Thu, 1 Oct 2015 18:28:08 -0400	[thread overview]
Message-ID: <CAMu2m2JgoFLmTttx6OohxSDvn_TM-mzrQRi4OSb-P_zCzp1K_A@mail.gmail.com> (raw)
In-Reply-To: <CAJ_epFM9s64QY88MxPW2apF9wgnXTQiJgns9w_dTtVKyvxsGeA@mail.gmail.com>

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

On Thu, Oct 1, 2015 at 6:20 PM, Thomas Refis <thomas.refis@gmail.com> wrote:

> Note the you could also do "type t = [ | s ]"
>

Actually I had tried that, but it doesn't work.



>
> 2015-10-01 18:06 GMT-04:00 Ashish Agarwal <agarwal1975@gmail.com>:
> > Embarrassing. I don't know why I thought I had to put brackets... Thanks!
> >
> > On Thu, Oct 1, 2015 at 5:47 PM, Haoyang Wang <hywang@pobox.com> wrote:
> >>
> >> > On Oct 1, 2015, at 2:41 PM, Ashish Agarwal <agarwal1975@gmail.com>
> >> > wrote:
> >> >
> >> > type s = [`A | `B]
> >> > type t = [s]
> >>
> >> type t = s
> >>
> >> --
> >> Caml-list mailing list.  Subscription management and archives:
> >> https://sympa.inria.fr/sympa/arc/caml-list
> >> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> >> Bug reports: http://caml.inria.fr/bin/caml-bugs
> >
> >
>

[-- Attachment #2: Type: text/html, Size: 1949 bytes --]

  parent reply	other threads:[~2015-10-01 22:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-01 21:41 Ashish Agarwal
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 [this message]
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=CAMu2m2JgoFLmTttx6OohxSDvn_TM-mzrQRi4OSb-P_zCzp1K_A@mail.gmail.com \
    --to=agarwal1975@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=hywang@pobox.com \
    --cc=thomas.refis@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).