From: Ben Millwood <bmillwood@janestreet.com>
To: "Grégoire Henry" <gregoire.henry@ocamlpro.com>
Cc: Nicolas Trangez <nicolas@incubaid.com>, Caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] Strange interaction between recursive modules, GADT exhaustiveness checking and type-checking?
Date: Mon, 30 Jun 2014 12:07:38 +0100 [thread overview]
Message-ID: <CA+MHO50kcPEFnXZsa7cCwXSdk0f92qM3w=x74kgB3vyPEWbbxA@mail.gmail.com> (raw)
In-Reply-To: <20140629144929.GB32483@mlqds.hnr.gr>
[-- Attachment #1: Type: text/plain, Size: 737 bytes --]
On 29 June 2014 15:49, Grégoire Henry <gregoire.henry@ocamlpro.com> wrote:
> Your first example is a particular case where we could assume that
> 'W.a' and 'W.b' are distinct. They are 'fully abstract types', they
> have no inhabitants. They were introduced in current typing context
> (and not imported from the signature of another module) and we known
> they are distinct.
>
This has bitten me before as well. It seems to me that whether or not a
type is abstract and whether or not it has any values should be essentially
independent characteristics, but it seems impossible to state in a
signature that a type has no constructors. So there's this property of
types that you can't preserve across module boundaries.
[-- Attachment #2: Type: text/html, Size: 1098 bytes --]
prev parent reply other threads:[~2014-06-30 11:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-28 22:55 Nicolas Trangez
2014-06-29 14:49 ` Grégoire Henry
2014-06-30 11:07 ` Ben Millwood [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='CA+MHO50kcPEFnXZsa7cCwXSdk0f92qM3w=x74kgB3vyPEWbbxA@mail.gmail.com' \
--to=bmillwood@janestreet.com \
--cc=caml-list@inria.fr \
--cc=gregoire.henry@ocamlpro.com \
--cc=nicolas@incubaid.com \
/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