diff --git a/interp.hs b/interp.hs index 36da3db..6a0ba3c 100644 --- a/interp.hs +++ b/interp.hs @@ -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