Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] One more deficiency of Coq?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] One more deficiency of Coq?


chronological Thread 
  • 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



Archive powered by MhonArc 2.6.16.

Top of Page