From: "Frédéric van der Plancke" <fvdp@decis.be>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Polymorphic variant difference...
Date: Tue, 15 May 2007 12:21:47 +0200 [thread overview]
Message-ID: <464989BB.3040307@decis.be> (raw)
In-Reply-To: <001601c796d5$b723b6c0$6a7ba8c0@treble>
David Allsopp wrote:
> ** Furthermore, I can't even hide these redundant types in the
> implementation:
>
> Foo.mli
>
> type t = [ `A | `B ]
>
> Foo.ml
>
> type t' = [ `A ]
> type t = [ `A | t' ]
>
> Is not valid even though t is /effectively/ the same p-variant in both the
> .mli and .ml
>
That's maybe just because of a typo (you wrote `A for `B below) ?
This seems to works with 3.09:
# module M : sig type t = [ `A | `B ] end = struct type t' = [`A] type t
= [`B | t' ] end;;
module M : sig type t = [ `A | `B ] end
Frédéric
next prev parent reply other threads:[~2007-05-15 10:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20070514100005.459F6BC70@yquem.inria.fr>
2007-05-14 10:52 ` David Allsopp
2007-05-15 4:40 ` Jacques Garrigue
2007-05-15 9:45 ` David Allsopp
2007-05-15 10:21 ` Frédéric van der Plancke [this message]
2007-05-14 10:52 ` [Caml-list] Compiling a library with findlib David Allsopp
2007-05-14 13:46 ` Sébastien Hinderer
[not found] <20070515154127.94D62BC96@yquem.inria.fr>
2007-05-15 17:02 ` [Caml-list] Polymorphic variant difference David Allsopp
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=464989BB.3040307@decis.be \
--to=fvdp@decis.be \
--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