On Wed, Dec 7, 2011 at 11:46 PM, Brandon Allbery <allbery.b@gmail.com> wrote:> case () of> () | s == reverse s -> putStrLn "palindrome"> _ -> putStrLn "nope"This is kind of a hack of case, though. I think what the OP was looking for is
| (word == reverse word) = putStrLn (word ++ " is a palindrome")
| otherwise = putStrLn (word ++ " is not a palindrome")