Skip to content

Commit

Permalink
Merge pull request #605 from rlepigre/br/api-fixes
Browse files Browse the repository at this point in the history
Fix a couple of bugs.
  • Loading branch information
gares authored Feb 29, 2024
2 parents 0066a3a + 7407611 commit 363f4dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
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

0 comments on commit 363f4dc

Please sign in to comment.