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 WAA15085; Tue, 23 Mar 2004 22:11:53 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id WAA14674 for ; Tue, 23 Mar 2004 22:11:52 +0100 (MET) Received: from mail.libertysurf.net (mail.libertysurf.net [213.36.80.91]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i2NLCQKW015588 for ; Tue, 23 Mar 2004 22:12:26 +0100 Received: from libertysurf.fr (213.36.173.53) by mail.libertysurf.net (6.5.036) id 406033E0000CC660; Tue, 23 Mar 2004 22:11:47 +0100 Message-ID: <4060A835.3030902@libertysurf.fr> Date: Tue, 23 Mar 2004 22:12:21 +0100 From: Matthieu Dubuget Reply-To: matthieu.dubuget@libertysurf.fr User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.6) Gecko/20040122 Debian/1.6-1 X-Accept-Language: fr-fr, fr, en-us MIME-Version: 1.0 To: Tim Docker , caml-list@inria.fr Subject: Re: [Caml-list] Basic question about modules References: <7F3CFECC66117548BE71E9D7CD2EFB504349A4@nt_lon_exm01.pc.internal.macquarie.com> In-Reply-To: <7F3CFECC66117548BE71E9D7CD2EFB504349A4@nt_lon_exm01.pc.internal.macquarie.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; matthieu:01 dubuget:01 matthieu:01 dubuget:01 caml-list:01 mli:01 mli:01 ocamlc:01 restrict:02 restrict:02 modules:02 module:03 exported:03 exported:03 types:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk X-Status: X-Keywords: X-UID: 337 > > If I want to restrict what gets exported, I have to > write an x.mli file. Whilst I've written mli files for simple > types and functions, I'm at a loss as how to write the contents > of the mli file that corresponds to the one automatically generated > above (specifically the StringMap bit). > When you are ready with your module, the simplest way is to generate the mli file with ocamlc -i x.ml > x.mli and then edit x.mli to restrict the exported parts. I hope I understood your question and that this will help. Salutations Matthieu Dubuget ------------------- 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