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
Partially hiding modules in packages
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-09-09 (20:25)
From: Alain Frisch <alain@f...>
Subject: Re: [Caml-list] Partially hiding modules in packages
On 9/9/2009 9:00 PM, Alexey Rodriguez wrote:
> My question is about how to hide modules (or parts thereof) in
> an ocaml package from the outside world (users of the package).

It is not a well-known fact, but it is possible to provide an explicit 
interface for the packaged module (just create an ad hoc foobar.mli and 
compile it before doing the -pack'ing).

-- Alain