fix pattern bindings preferring the old environment

This commit is contained in:
darkf 2013-10-20 18:45:23 -07:00
parent dcb52ad6eb
commit 98305cd6d0
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ apply (FnV pats) arg =
Just env' -> -- satisfies
do
(s,env) <- get
put (s, M.union env env')
put (s, M.union env' env)
foldr1 (>>) $ map eval body
Nothing -> -- doesn't satisfy this pattern
apply' xs