English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Basic question about modules
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-03-23 (21:11)
From: Matthieu Dubuget <matthieu.dubuget@l...>
Subject: Re: [Caml-list] Basic question about modules

> 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.


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