add evaluation of blocks

This commit is contained in:
darkf 2013-10-20 16:04:56 -07:00
parent f7ea85f08f
commit fa5783b6e1
1 changed files with 2 additions and 0 deletions

View File

@ -63,6 +63,8 @@ eval (StrConst s) = return $ StrV s
eval UnitConst = return UnitV
eval (Block body) = foldr1 (>>) $ map eval body
eval (ListConst v) =
mapM eval v >>= \xs ->
return $ ListV xs