Skip to content

Commit 9e888e7

Browse files
committed
tentative fix
1 parent b27693c commit 9e888e7

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/coq_elpi_vernacular.ml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -567,10 +567,7 @@ module Interp = struct
567567
match syndata with
568568
| None -> [], fun ~target:_ ~depth -> Stdlib.Result.Ok ET.mkDiscard
569569
| Some (relocate_term,log) -> log, relocate_term in
570-
let initial_synterp_state =
571-
match synterplog with
572-
| [] -> Vernacstate.Synterp.freeze ()
573-
| x :: _ -> Coq_elpi_builtins_synterp.SynterpAction.synterp_state_after x in
570+
let initial_synterp_state = Vernacstate.Synterp.freeze () in
574571
let query ~depth state =
575572
let state, args, gls = EU.map_acc
576573
(Coq_elpi_arg_HOAS.in_elpi_cmd ~depth ~raw:raw_args Coq_elpi_HOAS.(mk_coq_context ~options:(default_options ()) state))

tests/test_synterp.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Elpi Accumulate lp:{{
166166
main _ :-
167167
D = (record "foo" {{ Type }} "mkfoo" (field [] "f" {{ Type }} _\end-record)),
168168
coq.typecheck-indt-decl D ok,
169-
coq.env.add-indt D I.
169+
coq.env.add-indt D I, coq.env.begin-module "x" none, coq.env.end-module _.
170170
}}.
171171
#[synterp] Elpi Accumulate lp:{{
172172
main _ :- coq.env.begin-module "x" none, coq.env.end-module _.

0 commit comments

Comments
 (0)