Skip to content

Commit ff14ff5

Browse files
authored
Merge pull request #697 from LPCIC/fix-ci-820
fix compilation on 8.20
2 parents a379c07 + 795b964 commit ff14ff5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

apps/cs/src/coq_elpi_cs_hook.mlg

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ open Elpi_plugin
6262
open Coq_elpi_arg_syntax
6363
open Coq_elpi_vernacular
6464

65+
[%%if coq = "8.20"]
66+
let adapt_hook f : Evarconv.hook = fun env sigma (s,l,t) x -> f env sigma (s,Some l,t) x
67+
[%%else]
68+
let adapt_hook f : Evarconv.hook = f
69+
[%%endif]
6570

6671
let add_cs_hook =
6772
let cs_hook_program = Summary.ref ~name:"elpi-cs" None in
@@ -70,7 +75,7 @@ let add_cs_hook =
7075
| None -> None
7176
| Some h -> elpi_cs_hook h env sigma proj pat in
7277
let name = "elpi-cs" in
73-
Evarconv.register_hook ~name cs_hook;
78+
Evarconv.register_hook ~name (adapt_hook cs_hook);
7479
let inCs =
7580
let cache program =
7681
cs_hook_program := Some program;

0 commit comments

Comments
 (0)