From: David Rajchenbach-Teller <David.Teller@ens-lyon.org>
To: Martin Jambon <martin.jambon@ens-lyon.org>
Cc: OCaml <caml-list@inria.fr>
Subject: Re: [Caml-list] Hiding private types
Date: Tue, 10 Feb 2009 19:24:29 +0100 [thread overview]
Message-ID: <1234290269.6457.56.camel@Blefuscu> (raw)
In-Reply-To: <4991C1DF.8010503@ens-lyon.org>
On Tue, 2009-02-10 at 19:05 +0100, Martin Jambon wrote:
> (* IO's signature *)
> module type A_sig =
> sig
> type t
> val add : t -> t -> t
> val create : unit -> t
> end
>(* Extlib.IO *)
> module A : A_sig =
> struct
> type t = int
> let add = ( + )
> let create () = 1
> end
>
Thanks.
I can probably do that, if I find a nice way of
* extracting the signature and contents from .mli files
* replacing every occurrence of the private types of IO.mli with an
abstract type
* replacing every occurrence of these types in modules which use
InnerIO.output with IO.output
Of course, if anyone can think of a simpler solution, I'm interested.
> I just hope it works for your problem.
>
So do I, it's going to take some work just to reach a testable solution.
Thanks,
David
>
--
David Teller-Rajchenbach
Security of Distributed Systems
http://www.univ-orleans.fr/lifo/Members/David.Teller
« Ce matin Un crétin A tué un chercheur. » (air connu)
Latest News of French Research: System being liquidated. Researchers
angry.
next prev parent reply other threads:[~2009-02-10 18:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-10 17:14 David Rajchenbach-Teller
2009-02-10 18:05 ` [Caml-list] " Martin Jambon
2009-02-10 18:24 ` David Rajchenbach-Teller [this message]
2009-02-10 18:14 ` Daniel Bünzli
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=1234290269.6457.56.camel@Blefuscu \
--to=david.teller@ens-lyon.org \
--cc=caml-list@inria.fr \
--cc=martin.jambon@ens-lyon.org \
/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