On Wed, Dec 7, 2011 at 23:24, Alexej Segeda <aloscha_den_store@hotmail.com> wrote:case s of
(s == reverse s) -> putStrLn (s ++ " is a palindrome")
otherwise -> putStrLn (s ++ " is not a palindrome")case does pattern matching, not Boolean expressions. (s == reverse s) is not a useful pattern, and in fact is probably a syntax error because == is not a valid infix constructor.If you want to do Boolean comparisons in a case, you need to use something like> case () of> () | s == reverse s -> putStrLn "palindrome"> _ -> putStrLn "nope"