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

Fix a couple of bugs. #605

Merged
merged 2 commits into from
Feb 29, 2024
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
4 changes: 2 additions & 2 deletions elpi/coq-lib.elpi
Original file line number Diff line number Diff line change
Expand Up @@ -608,9 +608,9 @@ coq.with-TC Class Instance->Clause Code :-

pred coq.replay-synterp-action i:synterp-action.
coq.replay-synterp-action (begin-module ID) :- coq.env.begin-module ID _.
coq.replay-synterp-action (end-module _) :- coq.env.end-module _.
coq.replay-synterp-action (end-module MP) :- coq.env.end-module MP.
coq.replay-synterp-action (begin-module-type ID) :- coq.env.begin-module-type ID.
coq.replay-synterp-action (end-module-type _) :- coq.env.end-module-type _.
coq.replay-synterp-action (end-module-type MTP) :- coq.env.end-module-type MTP.
coq.replay-synterp-action (apply-module-functor ID) :- coq.env.apply-module-functor ID _ _ _ _ _.
coq.replay-synterp-action (apply-module-type-functor ID) :- coq.env.apply-module-type-functor ID _ _ _ _.
coq.replay-synterp-action (include-module MP) :- coq.env.include-module MP _.
Expand Down
7 changes: 6 additions & 1 deletion src/coq_elpi_builtins.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1855,7 +1855,12 @@ Supported attributes:
state, !: s, [])),
DocAbove);

Coq_elpi_builtins_synterp.current_path;
MLCode(Pred("coq.env.current-path",
Out(list B.string, "Path",
Read(unit_ctx, "lists the current module path")),
(fun _ ~depth _ _ state -> !: (mp2path (Global.current_modpath ())))),
DocAbove);

Coq_elpi_builtins_synterp.current_section_path;

LPCode {|% Deprecated, use coq.env.opaque?
Expand Down
Loading