-
Notifications
You must be signed in to change notification settings - Fork 53
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
Add coq.env.add-context
for inserting context declarations
#737
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, it looks good.
I would be tempted to break the existing api, giving a default value to the argument when omitted. Surely HB will need adjustment. |
I can try tomorrow. |
For the failure in master (nix) CC @CohenCyril |
Also, I forgot: here an example of an argument with a default ( coq-elpi/src/coq_elpi_builtins.ml Lines 1870 to 1878 in ee28024
|
How about using an optional
to preserve backward compat? |
That is also an option, but I'm not super fan of adding an attribute that is used only by one API. As expected HB failed. @VojtechStep do you need guidance on how to have CI use a patched branch of HB? |
I wanted to make my local checkout of HB use this branch of coq-elpi, but I'm struggling to get it set up. I tried overriding HB's Any help would be appreciated. |
I also tried adding |
This is a known issue, but I don't know the solution while @CohenCyril does |
Ah yeah, I did a stupid mistake somewhere and we keep bumping into it... so sorry about that. |
No worries, I figured it out in the meantime 👌 |
It seems HB is the only package impacted by the change, so I think this patch is fine. |
dd8e5e8
to
657278d
Compare
waiting ocaml/opam-repository#27258 |
657278d
to
4532ebf
Compare
I tried to make nix build against the upstream PR and tag but I failed. |
There was no way to add implicit section variables, so
context-decl
objects could not be faithfully spliced from outside code.I'd appreciate a naming suggestion for what I temporarily called
coq.env.add-section-variable-two
.