Slightly neater reflection008 test

This commit is contained in:
Edwin Brady 2020-06-03 09:25:09 +01:00
parent 3a7aedf0f4
commit 946e1b3a51

View File

@ -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)