Skip to content

Commit 19216eb

Browse files
committed
typeclass option for HB.structure
1 parent 9e09df7 commit 19216eb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

HB/common/utils-synterp.elpi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ with-attributes P :-
2424
att "primitive" bool,
2525
att "non_forgetful_inheritance" bool,
2626
att "hnf" bool,
27+
att "typeclass" bool,
2728
] Opts, !,
2829
Opts => (save-docstring, P).
2930

tests/coercion.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ HB.mixin Record isSigma (T : Type) (P : T -> Prop) (x : T) := {
55
_ : P x
66
}.
77

8-
#[short(type="sigType"), verbose]
8+
#[short(type="sigType"), typeclass]
99
HB.structure Definition Sig (T : Type) (P : T -> Prop) := {x of isSigma T P x}.
1010

1111
Section Sigma.
@@ -45,7 +45,7 @@ Fail Check x : sigType A P.
4545
End Sigma.
4646

4747
HB.mixin Record isSigmaT (P : Type -> Prop) (x : Type) := { _ : P x }.
48-
#[short(type="sigTType"), verbose]
48+
#[short(type="sigTType"), typeclass]
4949
HB.structure Definition SigT (P : Type -> Prop) := {x of isSigmaT P x}.
5050

5151
Section SigmaT.

0 commit comments

Comments
 (0)