Idris2/tests/idris2/reflection008/expected
Edwin Brady 3a7aedf0f4 Add reflection under (explicit) binders
This allows writing a staged well typed interpreter, for example (see
reflection008 test)
2020-06-03 09:17:37 +01:00

8 lines
212 B
Plaintext

1/1: Building Interp (Interp.idr)
Main> Main.evalAdd : Nat -> Nat -> Nat
evalAdd x y = let add = \val => \val => plus val val in add x y
Main> Main.evalBlock : Nat
evalBlock = plus 3 4
Main> 5
Main> Bye for now!