[Haskell-beginners] case statement

Imants Cekusins imantc at gmail.com
Tue Jul 7 12:04:34 UTC 2015


> There're several other ways to solve this:

Thank you.

You are right, GHC warns about shadowed variables.

This "case" behaviour (patterns allow no access to outer scope
variables) is different from some other languages.

Well, I'll remember this from now on.


More information about the Beginners mailing list