Created
July 23, 2010 05:08
-
-
Save Daenyth/487038 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| isPalindrome :: (Show a) => a -> Bool | |
| isPalindrome a = show a == reverse $ show a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Couldn't match expected type `String' | |
| against inferred type `[a] -> [a]' | |
| In the second argument of `(==)', namely `reverse' | |
| In the first argument of `($)', namely `show a == reverse' | |
| In the expression: show a == reverse $ show a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment