1
0
forked from GitHub/gf-core

Recording an alternative version of look in Compute/ConcreteLazy.hs

Commented out, causes problems in the greek example.
This commit is contained in:
hallgren
2011-10-25 18:50:07 +00:00
parent 4ab9212489
commit 2a10c21ad9

View File

@@ -291,6 +291,15 @@ computeTermOpt gr = comput True where
comp = comput True
look c = errr (lookupResDef gr c)
{- -- This seems to loop in the greek example:
look c = --trace ("look "++show c) $
optcomp =<< errr (lookupResDef gr c)
where
optcomp t = if t==Q c
then --trace "looking up undefined oper" $
return t
else comp [] t -- g or []?
-}
ext x a g = (x,a):g -- extend environment with new variable and its value