From: Alain Frisch <alain@frisch.fr>
To: Christophe Troestler <Christophe.Troestler@umons.ac.be>,
OCaml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] First class modules aliases
Date: Fri, 14 Feb 2014 10:39:55 +0100 [thread overview]
Message-ID: <52FDE46B.5010805@frisch.fr> (raw)
In-Reply-To: <52FDDA89.5070303@frisch.fr>
On 02/14/2014 09:57 AM, Alain Frisch wrote:
> One way to fix it would be to tweak the
> "strengthening" algorithm which adds equalities to module types in order
> to turn a module type declaration to an alias to the original definition
> instead of copying it.
Another example which is fixed by this patch is the following (reported
by my colleague David Waern):
==============================================
module M =
struct
module type T = sig type t end
type t = (module T)
end
module type X =
sig
module K: sig type t end
end
module Make(A : sig type t end)(X: X with type K.t = A.t) = struct end
module Z = Make(M)(struct module K = M end)
==============================================
-- Alain
next prev parent reply other threads:[~2014-02-14 9:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-14 7:23 Christophe Troestler
2014-02-14 8:57 ` Alain Frisch
2014-02-14 9:08 ` Jacques Garrigue
2014-02-14 9:22 ` Alain Frisch
2014-02-14 23:23 ` Jacques Garrigue
2014-02-14 9:39 ` Alain Frisch [this message]
[not found] ` <20140215.152342.1020588167010524975.Christophe.Troestler@umons.ac.be>
2014-02-15 15:05 ` [Caml-list] First class modules from C Alain Frisch
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=52FDE46B.5010805@frisch.fr \
--to=alain@frisch.fr \
--cc=Christophe.Troestler@umons.ac.be \
--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