lean4-htt/tests/lean/run/core.lean
Leonardo de Moura b142c608fe feat: add CoreM
2020-08-18 09:45:16 -07:00

18 lines
294 B
Text

import Lean.CoreM
open Lean
open Lean.Core
def f : CoreM Nat := do {
env ← getEnv;
cinfo ← getConstInfo `Nat.add;
trace! `Elab "trace message";
liftIO $ IO.println $ toString cinfo.type;
liftIO $ IO.println "testing...";
pure 10
}
#eval f
set_option trace.Elab true
#eval f