<?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="2006/02/e0ddfd6c321b9cf872ded255872ab3b5"
  from="Michel Mauny &lt;Michel.Mauny@i...&gt;"
  author="Michel Mauny"
  date="2006-02-10T06:10:19"
  subject="Re: [Caml-list] Toplevel Wish"
  prev="2006/02/3d07949351cb5804c4a2ac65a58ba9e2"
  next="2006/02/ef9041bde38bdf173791185ae5fd1fb8"
  prev-in-thread="2006/02/ef9041bde38bdf173791185ae5fd1fb8"
  prev-thread="2006/02/581feba66dccc44b766e0be06af8e26f"
  next-thread="2006/02/de0be9fcd3c4f381b75f2b23cf4e4132"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Toplevel Wish">
<msg 
  url="2006/02/2ef66e17ed240db9efd786e9235fb123"
  from="Jonathan Roewen &lt;jonathan.roewen@g...&gt;"
  author="Jonathan Roewen"
  date="2006-02-10T02:58:15"
  subject="[Caml-list] Toplevel Wish">
<msg 
  url="2006/02/3d07949351cb5804c4a2ac65a58ba9e2"
  from="Eric Cooper &lt;ecc@c...&gt;"
  author="Eric Cooper"
  date="2006-02-10T03:05:35"
  subject="Re: [Caml-list] Toplevel Wish">
<msg 
  url="2006/02/ef9041bde38bdf173791185ae5fd1fb8"
  from="Jon Harrop &lt;jon@f...&gt;"
  author="Jon Harrop"
  date="2006-02-10T11:21:11"
  subject="Re: [Caml-list] Toplevel Wish">
</msg>
</msg>
<msg 
  url="2006/02/e0ddfd6c321b9cf872ded255872ab3b5"
  from="Michel Mauny &lt;Michel.Mauny@i...&gt;"
  author="Michel Mauny"
  date="2006-02-10T06:10:19"
  subject="Re: [Caml-list] Toplevel Wish">
</msg>
</msg>
</thread>

<contents>
Jonathan Roewen a écrit :

&gt; I think it would be awesome if the toplevel would be able to spit out
&gt; the interface to a module.
&gt;
&gt; Like:
&gt;
&gt; # Printf;;
&gt; and it prints out a Module = sig ... end of the module if found.
&gt;

Or like this: (;-))

# module P = Printf;;
module P :
  sig
    val fprintf : out_channel -&gt; ('a, out_channel, unit) format -&gt; 'a
    val printf : ('a, out_channel, unit) format -&gt; 'a
    val eprintf : ('a, out_channel, unit) format -&gt; 'a
    val sprintf : ('a, unit, string) format -&gt; 'a
    ...

Maybe *module _ = Printf ;;* would be slightly more elegant, but the
above does work.

Regards,

-- Michel

</contents>

</message>

