From: "Michael Grünewald" <michaelgrunewald@yahoo.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Deleting a type alias while including a module
Date: Thu, 24 Nov 2011 20:33:29 +0100 [thread overview]
Message-ID: <4ECE9C09.3030705@yahoo.fr> (raw)
In-Reply-To: <4ECE725E.7050102@yahoo.fr>
As a complement to my previous message, here is a minimal (well, short!)
example displaying the behavior I cannot go around:
----8<--- example starts here ----
module type XARRAY =
sig
type 'a xarray
type 'a t = 'a xarray
end
module XArray : XARRAY =
struct
type 'a xarray = 'a
type 'a t = 'a xarray
end
module UseXArray =
struct
include (XArray : XARRAY with type 'a t := 'a XArray.xarray )
end
----8<---- example ends here ----
Trying to compile this file yields the following error:
File "include_substitute.ml", line 15, characters 20-61:
Error: In this `with' constraint, the new definition of t
does not match its original definition in the constrained signature:
Type declarations do not match:
type 'a t = 'a XArray.xarray
is not included in
type 'a t = 'a xarray
(OCaml 3.12.1 on FreeBSD/amd64)
next prev parent reply other threads:[~2011-11-24 19:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-24 16:35 Michael Grünewald
2011-11-24 19:33 ` Michael Grünewald [this message]
2011-11-24 23:53 ` Gabriel Scherer
2011-11-25 6:52 ` Michael Grünewald
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=4ECE9C09.3030705@yahoo.fr \
--to=michaelgrunewald@yahoo.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