caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] PV-GADTs
@ 2011-12-13 14:35 Dario Teixeira
  2011-12-13 15:00 ` Jacques Le Normand
  2011-12-14  2:56 ` Jacques Garrigue
  0 siblings, 2 replies; 5+ messages in thread
From: Dario Teixeira @ 2011-12-13 14:35 UTC (permalink / raw)
  To: caml

Hi,
I wonder, is there any theoretical reason why GADTs cannot be associated with
polymorphic variants?  As an example, consider the two type declarations below.
The first is your run-of-the-mill GADT, supported by the current SVN trunk.  The
second is a PV-GADT, which is not accepted.  But is this just a present limitation
or a fundamental one?

type _ t1 = Foo: int t1 | Bar: float t1

type _ t2 = [ `Foo: int t2 | `Bar: float t2 ]


Thanks in advance for your input!
Cheers,
Dario Teixeira


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-12-14 15:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-13 14:35 [Caml-list] PV-GADTs Dario Teixeira
2011-12-13 15:00 ` Jacques Le Normand
2011-12-13 19:15   ` Dario Teixeira
2011-12-14  2:56 ` Jacques Garrigue
2011-12-14 15:12   ` Markus Mottl

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).