diff options
author | Ben Sima <ben@bsima.me> | 2018-08-07 15:34:57 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2018-08-07 15:34:57 -0700 |
commit | b75fae17e1f887ddb7950410844ac2a819b7cca7 (patch) | |
tree | f0ccf0fffee7886b6278029c6bf6cb6b5acedb12 | |
parent | 64e41c64f49b640b73e1de3628731f9346640e14 (diff) |
Another typo
-rwxr-xr-x | ski.hs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -43,8 +43,8 @@ eval (Ap I x) = eval x -- (Ap (Ap _ _) _) -- -- so we just define that by recursing onto each branch of the Expr tree. But --- first we check for branch equality, to avoid infinite recursion: --- +-- first we check for equality, to avoid infinite recursion: + eval (Ap a b) = if a == a' && b == b' then (Ap a b) |