Skip to content

Commit b749f90

Browse files
committed
fix wrt coq-elpi 1.15.1
1 parent ee1e54d commit b749f90

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

HB/common/log.elpi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ env.import-module MPNice M :- std.do! [
159159

160160
pred coercion.declare i:coercion.
161161
coercion.declare C :- std.do! [
162-
@global! => coq.coercion.declare C,
162+
@global! => @reversible! => coq.coercion.declare C,
163163
C = coercion GR _ SRCGR TGTCL,
164164
coq.gref->id GR Name,
165165
log.private.log-vernac (log.private.coq.vernac.coercion Name SRCGR TGTCL),

HB/structure.elpi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ namespace structure {
55

66
% HB.structure Definition S P1 P2 := { T of F1 P1 T & F2 P1 (P2*P2) T }
77
% cons p1\ cons p2\ nil t\ [triple f1 [p1] t,triple f2 [p1, {{p1 * p2}}] t]
8+
pred declare i:string, i:term, i:sort.
89
pred declare i:string, i:term, i:universe.
910
declare Module BSkel Sort :- std.do! [
1011
disable-id-phant BSkel BSkelNoId,
@@ -495,6 +496,7 @@ pred synthesize-fields.body i:list term, i:term, i:list (w-args mixinname), o:in
495496
synthesize-fields.body _Params T ML (record "axioms_" {{ Type }} "Class" FS) :-
496497
synthesize-fields T ML FS.
497498

499+
pred mk-record+sort-field i:sort, i:name, i:term, i:(term -> record-decl), o:indt-decl.
498500
pred mk-record+sort-field i:universe, i:name, i:term, i:(term -> record-decl), o:indt-decl.
499501
mk-record+sort-field Sort _ T F (record RecordName (sort Sort) "Pack" (field _ "sort" T F)) :- !, std.do! [
500502
if (get-option "infer" _) (RecordName = "type_") (RecordName = "type")
@@ -505,6 +507,7 @@ mk-class-field ClassName Params T _ (field [canonical ff] "class" (app [global C
505507
std.append Params [T] Args.
506508

507509
% Builds the axioms record and the factories from this class to each mixin
510+
pred declare-class+structure i:mixins, i:sort, o:factoryname, o:structure, o:term, o:term, o:list prop, o:prop.
508511
pred declare-class+structure i:mixins, i:universe, o:factoryname, o:structure, o:term, o:term, o:list prop, o:prop.
509512
declare-class+structure MLwP Sort
510513
(indt ClassInd) (indt StructureInd) SortProjection ClassProjection AllFactories

coq-hierarchy-builder.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ build: [ [ make "build"]
1212
[ make "test-suite" ] {with-test}
1313
]
1414
install: [ make "install" ]
15-
depends: [ "coq-elpi" { (>= "1.15.0" & < "1.16~") | = "dev" } ]
15+
depends: [ "coq-elpi" { (>= "1.15.1" & < "1.16~") | = "dev" } ]
1616
conflicts: [ "coq-hierarchy-builder-shim" ]
1717
synopsis: "High level commands to declare and evolve a hierarchy based on packed classes"
1818
description: """

0 commit comments

Comments
 (0)