mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-11-24 06:52:19 +03:00
Slightly neater reflection008 test
This commit is contained in:
parent
3a7aedf0f4
commit
946e1b3a51
@ -43,8 +43,8 @@ interp env (Val x) = pure x
|
|||||||
interp env (Lam scope)
|
interp env (Lam scope)
|
||||||
= lambda _ (\val => interp (val :: env) scope)
|
= lambda _ (\val => interp (val :: env) scope)
|
||||||
interp env (App f a)
|
interp env (App f a)
|
||||||
= pure $ !(interp env f) !(interp env a)
|
= interp env f <*> interp env a
|
||||||
interp env (Op f x y) = pure $ f !(interp env x) !(interp env y)
|
interp env (Op f x y) = f <$> interp env x <*> interp env y
|
||||||
|
|
||||||
%macro
|
%macro
|
||||||
eval : Env gam -> Lang gam t -> Elab (interpTy t)
|
eval : Env gam -> Lang gam t -> Elab (interpTy t)
|
||||||
|
Loading…
Reference in New Issue
Block a user