coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: frank maltman <frank.maltman AT googlemail.com>
- To: AUGER Cedric <Cedric.Auger AT lri.fr>
- Cc: <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] "Transparent" module types, ala O'Caml?
- Date: Mon, 6 Jun 2011 20:54:50 +0000
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=HRdbzV+2L/1q2gHiMfSMx2VtNaihfRh17R6fjD6Ahv7cp7gyZ7us8CpKCwFSeOMxjM pVuFdi7jbKgrXK8CmMnwZzMqsovNJMT8OE9SaudI2tBJVv8nxXwATvDqCKsmUcimyw5K u/QGdQQDqeIxum9OQ53FrSPWEwpka3SCG8K54=
On Mon, 6 Jun 2011 10:04:23 +0200
AUGER Cedric
<Cedric.Auger AT lri.fr>
wrote:
>
> If I am not mistaken, you should have RTFM, since this part has a
> correct documentation unlike many coq features.
>
> Module Monad_option: Base
> with Definition M := option.
> …
> End Monad_option.
>
> should have done the trick in the OCaml way.
>
> In a way it is better than the <:, since it abstracts exactly the parts
> you want.
Unfortunately, the wording in the manual isn't exactly ideal. It mentions
transparency only once:
"If we just want to be sure that the our implementation satisfies a
given module type without restricting the interface, we can use a
transparent constraint"
I'm not even sure what "restricting the interface" means.
The sentence on using 'with Definition', as shown above, reads:
"Now we can create a new module from M, giving it a less precise
specification: the y component is dropped as well as the body of x."
I'm not claiming it's undocumented, but it's difficult to infer the
desired behaviour from those two sentences if you're not already
familiar with the system!
- [Coq-Club] "Transparent" module types, ala O'Caml?, frank maltman
- Re: [Coq-Club] "Transparent" module types, ala O'Caml?,
Mathieu Boespflug
- Re: [Coq-Club] "Transparent" module types, ala O'Caml?, frank maltman
- Re: [Coq-Club] "Transparent" module types, ala O'Caml?,
AUGER Cedric
- Re: [Coq-Club] "Transparent" module types, ala O'Caml?, Damien Pous
- Re: [Coq-Club] "Transparent" module types, ala O'Caml?, frank maltman
- Re: [Coq-Club] "Transparent" module types, ala O'Caml?,
Mathieu Boespflug
Archive powered by MhonArc 2.6.16.