How to display messages like the one Coq outputs when we manually enter a definition, inductive etc (e.g. "foo is declared...") but that are not displayed while using coqc in compilation mode? Is there a flag? Another predicate than coq.say? (I tried coq.info and coq.notice, which I do not know what they correspond to wrt coq.say, but neither worked)
I think that this possibility is not available in the current version of coq-elpi. Enrico will surely correct me if I'm wrong.
If you add this in the builtins:
MLCode(Pred("coq.say-quiet",
VariadicIn(unit_ctx, !> B.any, "Prints a notice message if not silenced"),
coq_print pp (Flags.if_verbose Feedback.msg_info)), (* Flags.if_verbose seems to be the key*)
DocAbove);
and call coq.say-quiet
somewhere in your code, does it do what you need?
Hum, I guess we might add a @if-interactive! => coq.say "bla"
that controls the Flags.if_verbose
thing.... not 100% sure
Last updated: Oct 13 2024 at 01:02 UTC