Skip to content

Commit c7fcee1

Browse files
authored
Merge pull request #702 from SkySkimmer/keep-force
Adapt to rocq-prover/rocq#19709 (libobject requires explicit classification)
2 parents 4b55e8e + d6fbdeb commit c7fcee1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/coq_elpi_programs.ml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ let in_source : Names.Id.t -> string option * EC.compilation_unit * EC.flags ->
304304
cache_function = cache;
305305
open_function = simple_open import;
306306
discharge_function = (fun o -> Some o);
307+
classify_function = (fun _ -> Keep);
307308
}
308309
;;
309310

@@ -495,6 +496,7 @@ let get ?(fail_if_not_exists=false) p =
495496
let open Libobject in
496497
declare_object { (default_object "ELPI-LP-COMMAND") with
497498
load_function = (fun _ x -> lp_command_ast := Some x);
499+
classify_function = (fun _ -> Keep);
498500
}
499501
let load_command s =
500502
let elpi = ensure_initialized () in
@@ -514,6 +516,7 @@ let get ?(fail_if_not_exists=false) p =
514516
let open Libobject in
515517
declare_object { (default_object "ELPI-LP-TACTIC") with
516518
load_function = (fun _ x -> lp_tactic_ast := Some x);
519+
classify_function = (fun _ -> Keep);
517520
}
518521
let load_tactic s =
519522
let elpi = ensure_initialized () in
@@ -548,6 +551,7 @@ let get ?(fail_if_not_exists=false) p =
548551
let open Libobject in
549552
declare_object { (default_object "ELPI-LP-CHECKER") with
550553
load_function = (fun _ x -> lp_checker_ast := Some x);
554+
classify_function = (fun _ -> Keep);
551555
}
552556

553557
let load_checker s =
@@ -566,6 +570,7 @@ let get ?(fail_if_not_exists=false) p =
566570
let open Libobject in
567571
declare_object { (default_object "ELPI-LP-PRINTER") with
568572
load_function = (fun _ x -> lp_printer_ast := Some x);
573+
classify_function = (fun _ -> Keep);
569574
}
570575
let load_printer s =
571576
let elpi = ensure_initialized () in

0 commit comments

Comments
 (0)