caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Michaël Grünewald" <Michael.Grunewald@laposte.net>
To: Hans Ole Rafaelsen <hrafaelsen@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Private modules in packages
Date: Fri, 21 May 2010 10:51:44 +0200	[thread overview]
Message-ID: <4BF649A0.4030309@laposte.net> (raw)
In-Reply-To: <AANLkTimIc_wUB68jg-1nb_0dkebrWsVBytRITWmiFczM@mail.gmail.com>

Hi Hans,
Hans Ole Rafaelsen wrote:

> When packing a set of modules into a top module using -pack, is there 
> a way to have some of the modules private to the package?
>
> If I have the modules Helper, Foo and Bar. Helper provides helper 
> functions used by Foo and Bar. When I'm packing them into a top mudule 
> P, I do not want to expose the functions of Helper to users of P.
>
> Is there some way to achieve this?  If not, do anyone know of other 
> ways for packing libraries and keeping some of the modules private to 
> the library?

IIRC you have to write an interface file (MLI) for the package.
-- 
Regards,
Michael


  reply	other threads:[~2010-05-21  8:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-21  8:32 Hans Ole Rafaelsen
2010-05-21  8:51 ` Michaël Grünewald [this message]
2010-05-21  8:53 ` [Caml-list] " Julien Signoles
2010-05-21  9:51   ` Hans Ole Rafaelsen
2010-05-21 13:54     ` Ashish Agarwal
2010-05-21 15:42       ` Julien Signoles
2010-05-21 18:04         ` Goswin von Brederlow
2010-05-21 19:52           ` Julien Signoles

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=4BF649A0.4030309@laposte.net \
    --to=michael.grunewald@laposte.net \
    --cc=caml-list@inria.fr \
    --cc=hrafaelsen@gmail.com \
    /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).