Skip to content

Commit d0a6900

Browse files
committed
Quickfix for coq.env.global
1 parent 48311ee commit d0a6900

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/rocq_elpi_builtins.ml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,7 +1759,8 @@ Supported attributes:
17591759
compute_with_uinstance ~depth options state mk_global gr ui_in in
17601760
let state, t, gls2 =
17611761
closed_ground_term.CConv.embed ~depth ctx csts state t in
1762-
state, !: maybe_gr +! t, gls @ gls1 @ gls2
1762+
let maybe_t = match ui_in with Some _ -> None | None -> Some t in
1763+
state, !: maybe_gr +? maybe_t, gls @ gls1 @ gls2
17631764
| None, None -> err Pp.(str "coq.env.global: no input, all arguments are variables"))),
17641765
DocAbove);
17651766

@@ -2173,7 +2174,7 @@ Supported attributes:
21732174
| B.Given body ->
21742175
let sigma = get_sigma state in
21752176
if not (is_ground sigma body) then
2176-
err Pp.(str"coq.env.add-const: the body must be ground. Did you forge to call coq.typecheck?");
2177+
err Pp.(str"coq.env.add-const: the body must be ground. Did you forget to call coq.typecheck?");
21772178
let opaque = opaque = B.Given true in
21782179
let types =
21792180
match types, opaque with

0 commit comments

Comments
 (0)