<?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="2003/10/8d9c9af7853e5addbbe1165dc90eb59d"
  from="David Brown &lt;caml-list@d...&gt;"
  author="David Brown"
  date="2003-10-29T17:00:32"
  subject="Re: [Caml-list] non-exported functions"
  prev="2003/10/669fd0c0dff2b0a039406b7cb928916d"
  next="2003/10/7efb2636e8baabcc0cb88a95c395b229"
  prev-in-thread="2003/10/d2f1b208c9d36f5626b05e92dc16d26e"
  next-in-thread="2003/10/a4b52f660d4a8eb90746fb46c97e4c5a"
  prev-thread="2003/10/5ebf3a77f0f4aa8b69a3ae8441a03d5c"
  next-thread="2003/10/ed044d47f888bfffb6ffeacf6d6db1b0"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] non-exported functions">
<msg 
  url="2003/10/7b2764972588e6c81d3ecd631f1a35da"
  from="Dustin Sallings &lt;dustin@s...&gt;"
  author="Dustin Sallings"
  date="2003-10-28T20:02:45"
  subject="[Caml-list] non-exported functions">
<msg 
  url="2003/10/2016da30865b8e17cdf4cd5a1d838a1f"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2003-10-28T21:08:10"
  subject="Re: [Caml-list] non-exported functions">
<msg 
  url="2003/10/fdc59437a02222f99a7ec3b03d3aa0b3"
  from="Maxence Guesdon &lt;maxence.guesdon@i...&gt;"
  author="Maxence Guesdon"
  date="2003-10-28T22:15:56"
  subject="Re: [Caml-list] non-exported functions">
<msg 
  url="2003/10/7b6c4bf56102a2665c09c6f90ad25a3f"
  from="Dustin Sallings &lt;dustin@s...&gt;"
  author="Dustin Sallings"
  date="2003-10-29T00:11:35"
  subject="Re: [Caml-list] non-exported functions">
<msg 
  url="2003/10/d193ec219165ecf11023420e9f1bd5c6"
  from="Jean-Baptiste Rouquier &lt;jean-baptiste.rouquier@e...&gt;"
  author="Jean-Baptiste Rouquier"
  date="2003-10-29T06:51:12"
  subject="Re: [Caml-list] non-exported functions">
<msg 
  url="2003/10/d2f1b208c9d36f5626b05e92dc16d26e"
  from="Dustin Sallings &lt;dustin@s...&gt;"
  author="Dustin Sallings"
  date="2003-10-29T07:52:13"
  subject="Re: [Caml-list] non-exported functions">
<msg 
  url="2003/10/8d9c9af7853e5addbbe1165dc90eb59d"
  from="David Brown &lt;caml-list@d...&gt;"
  author="David Brown"
  date="2003-10-29T17:00:32"
  subject="Re: [Caml-list] non-exported functions">
</msg>
<msg 
  url="2003/10/a4b52f660d4a8eb90746fb46c97e4c5a"
  from="skaller &lt;skaller@o...&gt;"
  author="skaller"
  date="2003-10-29T19:32:35"
  subject="Re: [Caml-list] non-exported functions">
</msg>
</msg>
</msg>
<msg 
  url="2003/10/394f1643e7f9913c35c2089af46dc7c5"
  from="skaller &lt;skaller@o...&gt;"
  author="skaller"
  date="2003-10-29T19:26:49"
  subject="Re: [Caml-list] non-exported functions">
<msg 
  url="2003/10/693f078aaae8a4c18319fd2939d8ed09"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2003-10-29T21:09:43"
  subject="Re: [Caml-list] non-exported functions">
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
On Tue, Oct 28, 2003 at 11:52:03PM -0800, Dustin Sallings wrote:
&gt; 
&gt; On Oct 28, 2003, at 10:50 PM, Jean-Baptiste Rouquier wrote:
&gt; 
&gt; &gt;&gt;I kinda liked automatically generating my .mli,
&gt; &gt;ocamlc -i foo.ml &gt; foo.mli
&gt; 
&gt; 	Right, like that.  If I have to make a custom mli, I have to take 
&gt; 	this out of my build system.  :)

If you wanted to feel more Haskell-like, you could have your build
system search for some specially formatted comment with an exports line
in it.  That way you could declare the things you want to export, and
filter the output of ocamlc -i.  You also want to make sure you write
the output to a temporary file, and only overwrite the foo.mli if it has
changed, otherwise you will rebuild way too much.

Dave

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners

</contents>

</message>

