test: display discrimination tree containing type class instances
This commit is contained in:
parent
e08c6def07
commit
e45211f31c
1 changed files with 12 additions and 0 deletions
12
tests/lean/run/instances.lean
Normal file
12
tests/lean/run/instances.lean
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import Init.Lean
|
||||
open Lean
|
||||
open Lean.Meta
|
||||
|
||||
def tst1 : IO Unit :=
|
||||
do let mods := [`Init.Lean];
|
||||
env ← importModules $ mods.map $ fun m => {module := m};
|
||||
let insts := getInstances env;
|
||||
IO.println (format insts);
|
||||
pure ()
|
||||
|
||||
#eval tst1
|
||||
Loading…
Add table
Reference in a new issue