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/coq#19362 (reduction effects take locality) #22

Merged
merged 1 commit into from
Jul 17, 2024
Merged
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
8 changes: 7 additions & 1 deletion redeffect.mlg.cppo
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ DECLARE PLUGIN "coq-reduction-effects.plugin"

{
let check_ID_type env sigma typ =
#if COQ_VERSION >= (8, 18, 0)
#if COQ_VERSION >= (8, 21, 0)
let decls,_ = whd_decompose_prod env sigma typ in
#elif COQ_VERSION >= (8, 18, 0)
let decls,_ = hnf_decompose_prod env sigma typ in
#else
let decls,_ = splay_prod env sigma typ in
Expand Down Expand Up @@ -66,7 +68,11 @@ let _ = declare_reduction_effect printing_name printing_hook
let declare_effect ref =
let ref = Smartlocate.global_with_alias ref in
let cst = check_valid_print_ref ref in
#if COQ_VERSION >= (8, 21, 0)
set_reduction_effect Export cst printing_name
#else
set_reduction_effect cst printing_name
#endif
}

VERNAC COMMAND EXTEND PrintingEffect CLASSIFIED AS SIDEFF
Expand Down
Loading