Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to Coq PR #18795 (more uniform API for declare.ml) #1083

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading