coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Adam Chlipala <adamc AT csail.mit.edu>
- To: "J. Ian Johnson" <ianj AT ccs.neu.edu>
- Cc: coq-club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] Typeclasses and hints?
- Date: Fri, 06 Jul 2012 17:47:37 -0400
On 07/06/2012 05:43 PM, J. Ian Johnson wrote:
I am turning the finite map library into a typeclass and extending it to use
setoids. There are different properties about them that are registered as
immediate or for resolve, but I can't do that kind of hint registration with
typeclass members. For example:
Class TC := { mem : forall x : Type, x = x}.
Hint Immediate mem.
Error: Cannot infer the implicit parameter TC of mem.
Could not find an instance for "TC".
The above runs without an error for me in Coq 8.4beta2.
- [Coq-Club] Typeclasses and hints?, J. Ian Johnson, 07/06/2012
- Re: [Coq-Club] Typeclasses and hints?, Adam Chlipala, 07/06/2012
- <Possible follow-up(s)>
- Re: [Coq-Club] Typeclasses and hints?, J. Ian Johnson, 07/07/2012
Archive powered by MHonArc 2.6.18.