coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Michael Shulman <mshulman AT ucsd.edu>
- To: Coq Club <coq-club AT inria.fr>
- Subject: [Coq-Club] typeclass methods in hints
- Date: Thu, 24 Nov 2011 20:16:52 -0800
Is it possible to declare a typeclass method as a hint? When I say
Hint Resolve some_method.
if no instances have yet been declared, I get a "cannot infer implicit
parameter" error. If some instances have been declared, then
apparently only the method applied to the first such instance is
declared as a hint. I can specify which instance I want with
Hint Resolve (@some_method some_instance).
but I want the hint to apply to *all* instances. However, if I write
Hint Resolve @some_method.
I am told "some_method cannot be used as a hint". Is there a way to do this?
Thanks,
Mike
- [Coq-Club] typeclass methods in hints, Michael Shulman
- Re: [Coq-Club] typeclass methods in hints, Damien Pous
Archive powered by MhonArc 2.6.16.