lean4-htt/tests/lean/trace2.lean
Leonardo de Moura e16dbac0db feat(frontends/lean): add declare_trace command
It allows users to define their own tracing classes.
2016-06-28 11:45:56 +01:00

20 lines
325 B
Text

open tactic
declare_trace foo.bla
example : true :=
by do
when_tracing ("foo" <.> "bla") $ do {
trace "hello",
trace "world" },
constructor
set_option trace.foo.bla true
print "------------"
example : true :=
by do
when_tracing ("foo" <.> "bla") $ do {
trace "hello",
trace "world" },
constructor