Skip to content

Commit 363f4dc

Browse files
authored
Merge pull request #605 from rlepigre/br/api-fixes
Fix a couple of bugs.
2 parents 0066a3a + 7407611 commit 363f4dc

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

elpi/coq-lib.elpi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,9 +608,9 @@ coq.with-TC Class Instance->Clause Code :-
608608

609609
pred coq.replay-synterp-action i:synterp-action.
610610
coq.replay-synterp-action (begin-module ID) :- coq.env.begin-module ID _.
611-
coq.replay-synterp-action (end-module _) :- coq.env.end-module _.
611+
coq.replay-synterp-action (end-module MP) :- coq.env.end-module MP.
612612
coq.replay-synterp-action (begin-module-type ID) :- coq.env.begin-module-type ID.
613-
coq.replay-synterp-action (end-module-type _) :- coq.env.end-module-type _.
613+
coq.replay-synterp-action (end-module-type MTP) :- coq.env.end-module-type MTP.
614614
coq.replay-synterp-action (apply-module-functor ID) :- coq.env.apply-module-functor ID _ _ _ _ _.
615615
coq.replay-synterp-action (apply-module-type-functor ID) :- coq.env.apply-module-type-functor ID _ _ _ _.
616616
coq.replay-synterp-action (include-module MP) :- coq.env.include-module MP _.

src/coq_elpi_builtins.ml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1855,7 +1855,12 @@ Supported attributes:
18551855
state, !: s, [])),
18561856
DocAbove);
18571857
1858-
Coq_elpi_builtins_synterp.current_path;
1858+
MLCode(Pred("coq.env.current-path",
1859+
Out(list B.string, "Path",
1860+
Read(unit_ctx, "lists the current module path")),
1861+
(fun _ ~depth _ _ state -> !: (mp2path (Global.current_modpath ())))),
1862+
DocAbove);
1863+
18591864
Coq_elpi_builtins_synterp.current_section_path;
18601865
18611866
LPCode {|% Deprecated, use coq.env.opaque?

0 commit comments

Comments
 (0)