Skip to content

Commit f6cadf7

Browse files
authored
2 parents 82b7637 + 389f57e commit f6cadf7

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

plugin/compat.ml.cppo

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,9 @@ type indirect_accessor = unit
4141
type 'a with_accessor = 'a
4242
let apply_accessor f ~opaque_access:() = f
4343
#endif
44+
45+
#if COQ_VERSION >= (9,2,0)
46+
let univ_poly = PolyFlags.of_univ_poly
47+
#else
48+
let univ_poly b = b
49+
#endif

plugin/compat.mli.cppo

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@ type 'a with_accessor = 'a
1414

1515
(* Compat adaptor for Coq functions *)
1616
val apply_accessor : 'a with_accessor -> opaque_access:indirect_accessor -> 'a
17+
18+
#if COQ_VERSION >= (9,2,0)
19+
val univ_poly : bool -> PolyFlags.t
20+
#else
21+
val univ_poly : bool -> bool
22+
#endif

plugin/iOLib.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ let mk_ref s = CAst.make @@ CRef (qualid_of_string s, None)
302302
(** [define env evd c] introduces a fresh constant name for the term [c]. *)
303303
let define env evd c =
304304
let (evd,_) = Typing.type_of env evd c in
305-
let univs = Evd.univ_entry ~poly:true evd in
305+
let univs = Evd.univ_entry ~poly:(Compat.univ_poly true) evd in
306306
let fn = fresh_name "quickchick" in
307307
(* TODO: Maxime - which of the new internal flags should be used here? The names aren't as clear :) *)
308308
let _ : Constant.t = declare_constant ~name:fn ~kind:Decls.(IsDefinition Definition)

0 commit comments

Comments
 (0)