Skip to content

Commit 20d8bcf

Browse files
authored
Merge pull request #301 from math-comp/update-changelog
Update Changelog.md
2 parents b4300d1 + d12a00e commit 20d8bcf

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

Changelog.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## [1.3.0] - 2022-07-27
4+
5+
Compatible with
6+
- Coq 8.15 with Coq-Elpi 1.14.x
7+
- Coq 8.16 with Coq-Elpi 1.15.x
8+
9+
### General
10+
11+
- **Fix** Structures can be keyd on sorts (eg `Prop`) and products (eg `T -> U`)
12+
- **New** Mixin parameters can depend on structure instances inferred using previous mixins (see [this test](tests/interleave_context.v))
13+
314
## [1.2.1] - 2022-01-10
415

516
Compatible with

tests/interleave_context.v

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ HB.structure Definition A n := { T of HasA n T }.
77
HB.mixin Record HasB (X : A.type 0) (T : Type) := { b : X -> T }.
88
HB.structure Definition B (X : A.type 0) := { T of HasB X T }.
99

10-
#[verbose]
10+
(* Since `B` expects an argument of type `A.type 0` (and not just
11+
just the naked type `T`) we pass `A.clone 0 T _`
12+
(of type `A.type 0`) and inference uses the first
13+
parameter `A` to elaborate it. *)
1114
HB.mixin Record IsSelfA T of A 0 T & B (A.clone 0 T _) T := {}.
12-
#[verbose]
15+
1316
HB.structure Definition SelfA := { T of IsSelfA T }.
1417

1518
HB.factory Record IsSelfA' T := { a : T ; b : T -> T}.
@@ -19,5 +22,4 @@ HB.builders Context T of IsSelfA' T.
1922
HB.instance Definition _ := IsSelfA.Build T.
2023
HB.end.
2124

22-
#[verbose]
23-
HB.instance Definition _ := IsSelfA'.Build nat 0 id.
25+
HB.instance Definition _ := IsSelfA'.Build nat 0 id.

0 commit comments

Comments
 (0)