From: "Michael Grünewald" <michaelgrunewald@yahoo.fr>
To: caml-list@inria.fr
Subject: [Caml-list] Deleting a type alias while including a module
Date: Thu, 24 Nov 2011 17:35:42 +0100 [thread overview]
Message-ID: <4ECE725E.7050102@yahoo.fr> (raw)
Dear list,
I am trying to use destructive substitution to remove a type alias in an
inclusion. Some module XArray has the following signature:
XArray: sig
type 'a xarray
type 'a t
end
and I would like to remove the 'a t in the resulting signature. I thought
include (XArray : module type of XArray
with 'a t := 'a XArray.xarray
)
would do, but it would not:
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
Honestly, I do not really understand why the substitution can not
happen, despite my careful reading of the documentation. Any
suggestions are welcome!
--
Michael
next reply other threads:[~2011-11-24 16:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-24 16:35 Michael Grünewald [this message]
2011-11-24 19:33 ` Michael Grünewald
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=4ECE725E.7050102@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