Skip to content

Commit 3b75595

Browse files
committed
make it work on old elpi
1 parent 84c4b5d commit 3b75595

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hb.elpi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2095,7 +2095,8 @@ copy-indt-decl (parameter ID I Ty D) (parameter ID I Ty1 D1) :-
20952095
@pi-parameter ID Ty1 x\ copy-indt-decl (D x) (D1 x).
20962096
copy-indt-decl (inductive ID CO A D) (inductive ID CO A1 D1) :-
20972097
copy-arity A A1,
2098-
@pi-inductive ID A1 i\ std.map (D i) copy-constructor (D1 i).
2098+
coq.id->name ID N, coq.arity->term A1 T, @pi-decl N T i\ std.map (D i) copy-constructor (D1 i).
2099+
% @pi-inductive ID A1 i\ std.map (D i) copy-constructor (D1 i). % requires Coq-Elpi 1.9.x
20992100
copy-indt-decl (record ID T IDK F) (record ID T1 IDK F1) :-
21002101
copy T T1,
21012102
copy-fields F F1.

0 commit comments

Comments
 (0)