<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2009/01/281157e09784e72d51fa6e446087e73d"
  from="Dario Teixeira &lt;darioteixeira@y...&gt;"
  author="Dario Teixeira"
  date="2009-01-21T21:52:26"
  subject="GADTs in Ocaml (was: Private types in 3.11, again)"
  prev="2009/01/c019f81e9e51e4ed916dd8defc2922e2"
  next="2009/01/64b85e8eb68518272dccd5416d545070"
  prev-in-thread="2009/01/c019f81e9e51e4ed916dd8defc2922e2"
  next-in-thread="2009/01/a44f23999a3086d6c3abc27ec0a57539"
  prev-thread="2009/01/05bc548e588fe9c3a7b00f01c10770eb"
  next-thread="2009/01/c04a6a1fca5f644f8e3abcd0c4bc7417"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Private types in 3.11, again">
<msg 
  url="2009/01/8e788cbdd78799c4d818c8b687a933c9"
  from="Dario Teixeira &lt;darioteixeira@y...&gt;"
  author="Dario Teixeira"
  date="2009-01-15T17:31:46"
  subject="Private types in 3.11, again">
<msg 
  url="2009/01/65ae6dbba6f7a5a9f4abdb2e6e7b295d"
  from="Dario Teixeira &lt;darioteixeira@y...&gt;"
  author="Dario Teixeira"
  date="2009-01-19T15:09:19"
  subject="Re: [Caml-list] Private types in 3.11, again">
<msg 
  url="2009/01/b3ffbc5aa0de84115687f2de96daa38e"
  from="Dario Teixeira &lt;darioteixeira@y...&gt;"
  author="Dario Teixeira"
  date="2009-01-20T16:33:55"
  subject="Re: [Caml-list] Private types in 3.11, again">
<msg 
  url="2009/01/7bf500ce00c1bd15b48f1a563855c516"
  from="Jacques Carette &lt;carette@m...&gt;"
  author="Jacques Carette"
  date="2009-01-20T17:30:37"
  subject="Re: [Caml-list] Private types in 3.11, again">
<msg 
  url="2009/01/746318635c69a7f8e8381ecb87c7a93b"
  from="Dario Teixeira &lt;darioteixeira@y...&gt;"
  author="Dario Teixeira"
  date="2009-01-20T17:48:16"
  subject="Re: [Caml-list] Private types in 3.11, again">
</msg>
<msg 
  url="2009/01/606129155b17b72d64eb1257f4014237"
  from="Jacques Garrigue &lt;garrigue@m...&gt;"
  author="Jacques Garrigue"
  date="2009-01-21T10:48:52"
  subject="Re: [Caml-list] Private types in 3.11, again">
</msg>
</msg>
<msg 
  url="2009/01/f71b5e0a66830ec7021b30a75465b90b"
  from="Jacques Garrigue &lt;garrigue@m...&gt;"
  author="Jacques Garrigue"
  date="2009-01-21T10:49:12"
  subject="Re: [Caml-list] Private types in 3.11, again">
</msg>
</msg>
<msg 
  url="2009/01/0fbff864e2edb7059ab802560278f082"
  from="Jacques Garrigue &lt;garrigue@m...&gt;"
  author="Jacques Garrigue"
  date="2009-01-21T13:22:34"
  subject="Re: [Caml-list] Private types in 3.11, again">
<msg 
  url="2009/01/b6e5615f0ddcff7795d510d626bf48fa"
  from="Dario Teixeira &lt;darioteixeira@y...&gt;"
  author="Dario Teixeira"
  date="2009-01-21T19:11:16"
  subject="Re: [Caml-list] Private types in 3.11, again">
<msg 
  url="2009/01/c019f81e9e51e4ed916dd8defc2922e2"
  from="Gabriel Kerneis &lt;kerneis@p...&gt;"
  author="Gabriel Kerneis"
  date="2009-01-21T20:17:48"
  subject="Re: [Caml-list] Private types in 3.11, again">
<msg 
  url="2009/01/281157e09784e72d51fa6e446087e73d"
  from="Dario Teixeira &lt;darioteixeira@y...&gt;"
  author="Dario Teixeira"
  date="2009-01-21T21:52:26"
  subject="GADTs in Ocaml (was: Private types in 3.11, again)">
</msg>
</msg>
<msg 
  url="2009/01/a44f23999a3086d6c3abc27ec0a57539"
  from="Jacques Garrigue &lt;garrigue@m...&gt;"
  author="Jacques Garrigue"
  date="2009-01-22T01:36:52"
  subject="Re: [Caml-list] Private types in 3.11, again">
</msg>
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
Hi,

&gt; I didn't followed the thread closely, but did you have a look
&gt; at Ocsigen's way to implement params_type?

Thanks for the suggestion.  Actually, there's an Ocsigen connection with
what I'm doing.  The Node module we've been discussing is a simplification;
the real problem is for a data type that can be converted into the XHTML.M
data used in Ocsigen.  (As was discussed some time ago in the Ocsigen mailing
list, the XHTML.M module does not strictly enforce the nested link nodes
rule of the W3C.  Nevertheless I have been looking for a solution that does
enforce this rule).

Anyway, I took a brief look at the code you mentioned, and re-read the
relevant section in the "Rapport Ocsigen" you wrote a while ago (when
I first read that report I had no idea what GADTs were!).  It does seem
that we're all just cooking up workarounds to the lack of GADTs in
Ocaml.  Now, I recall Xavier Leroy mentioning this topic at the user
meeting last year.  It seems the theory is ready, but the compiler
needs some work done before it can accommodate this new feature.  Are
there news on that front?

Best regards,
Dario Teixeira



      

</contents>

</message>

