coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Matthieu Sozeau <matthieu.sozeau AT gmail.com>
- To: Victor Porton <porton AT narod.ru>
- Cc: Coq Club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] One more deficiency of Coq?
- Date: Tue, 15 Nov 2011 11:08:02 +0100
Le 15 nov. 2011 à 00:07, Victor Porton a écrit :
> The following does not verify, because in some reason Coq does not do a
> coercion from Derived to Base.
>
> Maybe it is an intended behavior but for me it seems like a conceptual
> error in Coq type classes.
Well, maybe you should read about typeclasses in Haskell and Coq to
understand why they're
implemented like this. In case you think "base" is declared a coercion, the
manual will
inform you that it is not the case, "base" is simply declared as an instance,
of type
[Derived -> Base]. You can declare it as a coercion yourself if you like.
-- Matthieu
- [Coq-Club] One more deficiency of Coq?, Victor Porton
- Re: [Coq-Club] One more deficiency of Coq?, Matthieu Sozeau
- Re: [Coq-Club] One more deficiency of Coq?, Victor Porton
- Message not available
- Re: [Coq-Club] One more deficiency of Coq?, Matthieu Sozeau
- Re: [Coq-Club] One more deficiency of Coq?, Matthieu Sozeau
Archive powered by MhonArc 2.6.16.