mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-11-28 02:23:44 +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)
|
||||
= lambda _ (\val => interp (val :: env) scope)
|
||||
interp env (App f a)
|
||||
= pure $ !(interp env f) !(interp env a)
|
||||
interp env (Op f x y) = pure $ f !(interp env x) !(interp env y)
|
||||
= interp env f <*> interp env a
|
||||
interp env (Op f x y) = f <$> interp env x <*> interp env y
|
||||
|
||||
%macro
|
||||
eval : Env gam -> Lang gam t -> Elab (interpTy t)
|
||||
|
Loading…
Reference in New Issue
Block a user