Skip to content

Commit

Permalink
Adapt to PR #18795
Browse files Browse the repository at this point in the history
  • Loading branch information
herbelin committed May 20, 2024
1 parent e27b549 commit 9a28be1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion template-coq/src/plugin_core.ml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ let tmLemma (nm : ident) ?poly:(poly=false)(ty : term) : kername tm =
let cinfo = Declare.CInfo.make ~name:nm ~typ:cty () in
let info = Declare.Info.make ~poly ~kind () in
(* This should register properly with the interpretation extension *)
let pm, _ = Declare.Obls.add_definition ~pm:st ~cinfo ~info ~term:c ~uctx:ctx ~obl_hook obls in
let pm, _ = Declare.Obls.add_definition ~pm:st ~cinfo ~info ~body:c ~uctx:ctx ~obl_hook ~opaque:false obls in
pm

let tmFreshName (nm : ident) : ident tm =
Expand Down
2 changes: 1 addition & 1 deletion template-coq/src/run_template_monad.ml
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ let rec run_template_program_rec ~poly ?(intactic=false) (k : Constr.t Plugin_co
k ~st:pm env evm (EConstr.to_constr evm t)) in (* todo better *)
let cinfo = Declare.CInfo.make ~name:ident ~typ:cty () in
let info = Declare.Info.make ~poly ~kind () in
let pm, _ = Declare.Obls.add_definition ~pm:st ~cinfo ~info ~term:c ~uctx ~obl_hook obls in
let pm, _ = Declare.Obls.add_definition ~pm:st ~cinfo ~info ~body:c ~uctx ~obl_hook ~opaque:false obls in
pm

| TmQuote trm ->
Expand Down

0 comments on commit 9a28be1

Please sign in to comment.