Skip to content

Commit 3ffdfd3

Browse files
authored
Merge pull request #497 from VojtechStep/feature/breaking-add-section-variable
Feature/breaking add section variable
2 parents be3bc59 + 3decef8 commit 3ffdfd3

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.nix/config.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@
3030
paramcoq.override.version = "master";
3131
coqeal.job = false; # broken in master, c.f. https://github.com/coq/coq/pull/19228
3232
};
33-
"coq-master".ocamlPackages = { elpi.override.version = "2.0.6"; };
33+
"coq-master".ocamlPackages = { elpi.override.version = "2.0.7"; };
3434

3535
"coq-8.20".coqPackages = mcHBcommon // {
3636
coq.override.version = "8.20";
37+
ocamlPackages = { elpi.override.version = "2.0.7"; };
3738
};
3839

3940
"coq-8.19".coqPackages = mcHBcommon // {

.nix/coq-overlays/coq-elpi/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ let
6767
{
6868
case = "8.20";
6969
out = {
70-
version = "1.19.2";
70+
version = "2.0.7";
7171
};
7272
}
7373
] { }

HB/common/log.elpi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ env.add-const-noimplicits-failondup Name Bo Ty Opaque C :- std.do! [
7171
pred env.add-section-variable-noimplicits i:id, i:term, o:constant.
7272
env.add-section-variable-noimplicits Name Ty C :- std.do! [
7373
if (Name = "_") (ID is "fresh_name_" ^ {std.any->string {new_int}}) (ID = Name),
74+
% elpi:if version coq-elpi < 2.4.0
7475
@local! => coq.env.add-section-variable ID Ty C,
76+
% elpi:endif
77+
% elpi:if version coq-elpi >= 2.4.0
78+
@local! => coq.env.add-section-variable ID _ Ty C,
79+
% elpi:endif
7580
log.private.log-vernac (log.private.coq.vernac.variable ID Ty),
7681
@local! => arguments.set-implicit (const C) [[]],
7782
].

0 commit comments

Comments
 (0)