From: Remi VANICAT <Remi.Vanicat@labri.u-bordeaux.fr>
To: caml-list@inria.fr
Subject: Re: Module naming
Date: 02 Feb 2000 20:20:28 +0100 [thread overview]
Message-ID: <ya3k8knmmwz.fsf@serveur3-1.labri.u-bordeaux.fr> (raw)
In-Reply-To: Max Skaller's message of "Wed, 02 Feb 2000 12:39:11 +1100"
Max Skaller <maxs@in.ot.com.au> writes:
> I'm confused: why doesn't this work? [I get unbound type ctor message]
> [shortened version]
>
> module type X = sig type one end
> module type Y = sig type two end
> module type XY = sig module type XX = X module type YY = Y end
> module type Client = functor (T: XY) ->
> sig val f: T.XX.one -> unit end
> ^^^^^^^^
i am not sure of what you want, but this work :
module type X = sig type one end
module type Y = sig type two end
module type XY = sig module XX : X module YY : Y end
module type Client = functor (T: XY) ->
sig val f: T.XX.one -> unit end
you have define XY as the type of module that contain two module
type equal to X and to Y;
i have define XY as the type of module that contain two module of type
X and Y;
(sorry for my poor English)
version française :
Max Skaller a défini XY comme le type des modules contenant deux type
de module XX et YY égale =E0 respectivement X et Y, je pense qu'il
voulait définir XY comme le type des modules contenant deux module XX
et YY de type respectif X et Y.
--
Rémi Vanicat
vanicat@labri.u-bordeaux.fr
http://dept-info.labri.u-bordeaux.fr/~vanicat
prev parent reply other threads:[~2000-02-02 22:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-02-02 1:39 Max Skaller
2000-02-02 17:58 ` Andreas Rossberg
2000-02-02 19:20 ` Remi VANICAT [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=ya3k8knmmwz.fsf@serveur3-1.labri.u-bordeaux.fr \
--to=remi.vanicat@labri.u-bordeaux.fr \
--cc=caml-list@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