Some nits to pick, on the Haskell:
> No exceptions
>
> Exceptions are also a side effect handled by the type
> system. We know our function is pure and won’t throw
> an exception.
This isn't the case for Haskell.
> The input can either be true or false. Once you have
> tested the result of these two possibilities, you
> have the holy grail. No exceptions, no infinite
> loops, no incorrect results, no errors.
Almost. The input can also be bottom (a thunk that, when forced, loops infinitely or raises an exception). In that case, if the function tries to inspect the input then the function will also be a thunk that, when forced, loops infinitely or throws an exception. If the function does
not inspect its input, it may still return a value (e.g. `const True`).