caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Johannes Kanig <johannes.kanig@lri.fr>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Circular dependencies
Date: Mon, 6 Jul 2009 13:19:21 +0200	[thread overview]
Message-ID: <926565e50907060419m4985f66awd8480ebef0112294@mail.gmail.com> (raw)
In-Reply-To: <20090706105629.GA25140@uranium.pps.jussieu.fr>

On Mon, Jul 6, 2009 at 12:56 PM, Pietro
Abate<Pietro.Abate@pps.jussieu.fr> wrote:
> ok, so if now I want to hide the module private.ml 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 ?

I don't know of a solution without changing your code. You could
either remove your internal .mli files and put all the interfaces into
algo.mli. Or you create a file signatures.mli which contains the
relevant signatures. In pub1.mli, you could then write include
Signatures.Pub1, and so on, and similarly for algo.mli.

Johannes

-- 
Johannes Kanig
johannes.kanig@lri.fr


      reply	other threads:[~2009-07-06 11:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-06  9:27 Pietro Abate
2009-07-06 10:25 ` [Caml-list] " Johannes Kanig
2009-07-06 10:56   ` Pietro Abate
2009-07-06 11:19     ` Johannes Kanig [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=926565e50907060419m4985f66awd8480ebef0112294@mail.gmail.com \
    --to=johannes.kanig@lri.fr \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).