Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Eval compute and type classes

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Eval compute and type classes


Chronological Thread 
  • From: Julien Tesson <julien.tesson AT univ-orleans.fr>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] Eval compute and type classes
  • Date: Wed, 10 Oct 2012 23:28:56 +0200

Hi list,
we found a very strange "feature" of Coq 8.4 when it comes to evaluate a term
which relies on type classes, here is a very small example.


Class A :={a : Type}.
Eval compute in a.


Here, [a] evaluate to [let (a) := ?3 in a : Type]
whereas in a previous version of Coq (actually 8.3pl3) it fails with message
"Cannot infer the implicit parameter A of a", as expected.

If we try to assign the result,
Definition x := Eval compute in a.
it fails, that's why I did'nt call this behaviour a bug, but a (very) strange
feature.

we were wondering if this behaviour was known and done on purpose ?

Regards,
Julien



Archive powered by MHonArc 2.6.18.

Top of Page