Skip to content

Commit

Permalink
Adapt to coq/coq#20315 (may_eval type moved)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkySkimmer committed Mar 3, 2025
1 parent 62984e6 commit 957a502
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
5 changes: 4 additions & 1 deletion serlib/plugins/ltac/ser_tacexpr.ml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ type ml_tactic_entry =
[%import: Ltac_plugin.Tacexpr.ml_tactic_entry]
[@@deriving sexp,yojson,hash,compare]

type ('a, 'b, 'c, 'd) may_eval = [%import: ('a,'b,'c,'d) Ltac_plugin.Tacexpr.may_eval]
[@@deriving sexp,yojson,hash,compare]

(* type dyn = Ser_Dyn [@@deriving sexp] *)
(* let to_dyn _ = Ser_Dyn *)
(* let from_dyn _ = fst (Dyn.create "dyn_tac") 0 *)
Expand Down Expand Up @@ -167,7 +170,7 @@ type ('trm, 'dtrm, 'pat, 'redpat, 'cst, 'ref, 'nam, 'occvar, 'tacexpr, 'lev) gen

and ('trm, 'dtrm, 'pat, 'redpat, 'cst, 'ref, 'nam, 'occvar, 'tacexpr, 'lev) gen_tactic_arg =
| TacGeneric of string option * 'lev Genarg.generic_argument
| ConstrMayEval of ('trm,'cst,'redpat,'occvar) Genredexpr.may_eval
| ConstrMayEval of ('trm,'cst,'redpat,'occvar) may_eval
| Reference of 'ref
| TacCall of ('ref *
('trm, 'dtrm, 'pat, 'redpat, 'cst, 'ref, 'nam, 'occvar, 'tacexpr, 'lev) gen_tactic_arg list) CAst.t
Expand Down
4 changes: 0 additions & 4 deletions serlib/ser_genredexpr.ml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ type ('a,'b,'c,'d) red_expr_gen =
[%import: ('a,'b,'c,'d) Genredexpr.red_expr_gen]
[@@deriving sexp,yojson,hash,compare]

type ('a,'b,'c,'d) may_eval =
[%import: ('a,'b,'c,'d) Genredexpr.may_eval]
[@@deriving sexp,yojson,hash,compare]

(* Helpers for raw_red_expr *)
type r_trm =
[%import: Genredexpr.r_trm]
Expand Down
3 changes: 0 additions & 3 deletions serlib/ser_genredexpr.mli
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ type 'a glob_red_flag = 'a Genredexpr.glob_red_flag
type ('a, 'b, 'c, 'd) red_expr_gen = ('a, 'b, 'c, 'd) Genredexpr.red_expr_gen
[@@deriving sexp,yojson,hash,compare]

type ('a, 'b, 'c, 'd) may_eval = ('a, 'b, 'c, 'd) Genredexpr.may_eval
[@@deriving sexp,yojson,hash,compare]

type raw_red_expr = Genredexpr.raw_red_expr [@@deriving sexp,yojson,hash,compare]

type 'a and_short_name = 'a Genredexpr.and_short_name
Expand Down

0 comments on commit 957a502

Please sign in to comment.