Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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.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 Archives:
Bug reports: FAQ:
Beginner's list: