lean4-htt/tests/lean/run/instances.lean
Leonardo de Moura 8b51f6279e chore: fix tests
2020-12-16 10:45:27 -08:00

16 lines
357 B
Text

import Lean
open Lean
open Lean.Meta
instance : ToFormat InstanceEntry where
format e := format e.val
unsafe def tst1 : IO Unit :=
withImportModules [{module := `Lean}] {} 0 fun env => do
let aux : MetaM Unit := do
let insts ← getGlobalInstancesIndex
IO.println (format insts)
discard <| aux.run |>.toIO {} { env := env }
#eval tst1