projects
/
cubicaltt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01aff1c
)
evaluate undefined into a closure
author
Simon Huber
<hubsim@gmail.com>
Wed, 8 Apr 2015 16:49:10 +0000
(18:49 +0200)
committer
Simon Huber
<hubsim@gmail.com>
Wed, 8 Apr 2015 16:49:10 +0000
(18:49 +0200)
Eval.hs
patch
|
blob
|
blame
|
history
diff --git
a/Eval.hs
b/Eval.hs
index e2c8d45a41a6a32d3ef67d52a46361b72869c956..ec9dc3122295b2f4a35c17faf8a2000cbe419a20 100644
(file)
--- a/
Eval.hs
+++ b/
Eval.hs
@@
-129,6
+129,7
@@
instance Nominal Val where
eval :: Env -> Ter -> Val
eval rho v = case v of
+ Undef{} -> Ter v rho
U -> VU
App r s -> app (eval rho r) (eval rho s)
Var i -> look i rho