coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Damien Pous <Damien.Pous AT inria.fr>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] "Transparent" module types, ala O'Caml?
- Date: Mon, 6 Jun 2011 11:20:29 +0200
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=TAPvgjse6DYodZ4zGrO2i248fh37drorcsIZFJmf37NNFiXVQ79OiTXtgJLJKrTJBO 2MObS9VUDgcSgMAyEUhK8au2Ry8A37FcO0Y1NqP6P6GckKz6DMXd2+1d31A/wt8l4XHc knaLtR7y+6pfmcQYm+Hl4UjuBQSJTyiDjmQ0U=
> 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.
It would do the job in Ocaml, it possibly does not in Coq : this would
make all other definitions opaque, which is most of the time not what
you want.
Typically, if you want to compute with this monad, you need bind,
return, fail, and so on to be transparent.
> If I am not mistaken, you should have RTFM, since this part has a
> correct documentation unlike many coq features.
please refrain from using such acronyms, please.
Best,
Damien
- [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.