coq-club AT inria.fr
Subject: The Coq mailing list
List archive
Re: [Coq-Club] How to define the priority of a typeclass instance defined using Existing Instance?
Chronological Thread
- From: Matthieu Sozeau <matthieu.sozeau AT gmail.com>
- To: Thomas Braibant <thomas.braibant AT gmail.com>
- Cc: coq-club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] How to define the priority of a typeclass instance defined using Existing Instance?
- Date: Fri, 6 Sep 2013 17:40:01 +0200
Hi,
sadly, that was overlooked in 8.4, it is available in the trunk though.
Interestingly [Hint Resolve foo 4 : typeclass_instances] could have been
a workaround, as the grammar can expect an int at the end of the list of
hints, but 4 parses as a term… I'm changing the syntax to:
[Hint Resolve hint [| n] : …], avoiding ambiguity and maintaining
compatibility. For now, the only workaround is to use:
[Hint Extern 4 (optional pattern) => apply hint : typeclass_instances].
Best,
-- Matthieu
On 6 sept. 2013, at 16:50, Thomas Braibant
<thomas.braibant AT gmail.com>
wrote:
> Hi list,
>
> The documentation states that
> Instance ident binder1 …bindern : Class t1 …tn [| priority] := {
> field1 := b1 ; …; fieldi := bi }
> defines an instance with a priority.
>
> I cannot remember (if I ever knew it) what is the relevant syntax to
> add priorities to instances defined using Existing Instance?
>
> With best regards,
> Thomas
- [Coq-Club] How to define the priority of a typeclass instance defined using Existing Instance?, Thomas Braibant, 09/06/2013
- Re: [Coq-Club] How to define the priority of a typeclass instance defined using Existing Instance?, Matthieu Sozeau, 09/06/2013
Archive powered by MHonArc 2.6.18.