From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA10377; Wed, 29 Oct 2003 18:00:32 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA14233 for ; Wed, 29 Oct 2003 18:00:31 +0100 (MET) Received: from mail.davidb.org (adsl-64-172-240-129.dsl.sndg02.pacbell.net [64.172.240.129]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h9TH0T121069 for ; Wed, 29 Oct 2003 18:00:30 +0100 (MET) Received: from davidb by mail.davidb.org with local (Exim 3.36 #1 (Debian)) id 1AEn7l-0005RH-00; Wed, 29 Oct 2003 02:00:21 -0800 Date: Wed, 29 Oct 2003 02:00:21 -0800 From: David Brown To: Dustin Sallings Cc: Jean-Baptiste Rouquier , caml-list@inria.fr Subject: Re: [Caml-list] non-exported functions Message-ID: <20031029100021.GA20874@davidb.org> References: <728D3F38-09A4-11D8-B9F5-000393CFE6B8@spy.net> <001701c39de9$0852a2c0$77804d8c@residence.enslyon.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 caml-list:01 mli:01 ocamlc:01 foo:01 foo:01 mli:01 haskell-like:01 ocamlc:01 overwrite:01 dave:03 wrote:03 wrote:03 oct:03 oct:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tue, Oct 28, 2003 at 11:52:03PM -0800, Dustin Sallings wrote: > > On Oct 28, 2003, at 10:50 PM, Jean-Baptiste Rouquier wrote: > > >>I kinda liked automatically generating my .mli, > >ocamlc -i foo.ml > foo.mli > > Right, like that. If I have to make a custom mli, I have to take > 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