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
Circular dependencies
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-07-06 (10:56)
From: Pietro Abate <Pietro.Abate@p...>
Subject: Re: [Caml-list] Circular dependencies
On Mon, Jul 06, 2009 at 12:25:58PM +0200, Johannes Kanig wrote:
> Abate<> wrote:
> > #cat algo.mlpack
> > Pub1
> > Pub2
> > Out
> It's a bit confusing, but the mlpack has to contain all the modules of
> the pack, and not only the public modules. So you should add "Private"
> here. The circular dependency message is ocamlbuild's way of telling
> you.

ok, so if now I want to hide the module I need to add
algo.mli to hide it . Suppose I've the mli for Pub1 Pub2 and Out .  How
can I easily (without cut and pasting code) create algo.mli ?  Tell me I
do not have to manually add the signature of Pub1 Pub2 and Out ...
searching the list I've got a bad feeling ... Is this the best way to
hide a module ? 

thanks again.