stefankoegel / clickyEvaluation

Visual tool for stepwise evaluation of simple Haskell expressions
MIT License
20 stars 4 forks source link

Catch all in pattern matching suceeds too often #12

Closed stefankoegel closed 9 years ago

stefankoegel commented 9 years ago

No case of a function should be applicable if one of them fails because the argument has not been evaluated sufficiently.

Example:

foo (x:xs) = 1
foo _        = 0

$> foo a
   0