Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I have no idea how you can see the various codes that I entered and why you doubt me?! I have three versions of this code running in GHCi, all correctly. Including one version with error handling if input text isn't one of the three std input strings. I was talking on Discord FP server in the #haskell-beginners channel and getting some help.
There seems to be an issue with the read command (and readMaybe) working in GHC and not in Codewars. I removed all the use of datatypes and just used strings instead so i didn't need the read or readMaybe functions and it works in CodeWars too. Seems Codewars does not like
read
.My
Haskell
code works perfectly in GHCi. Fails on each test when I hit "Attempt" button. Seems like many others have same issue in other languages.the codewars error messages suggested to me escape chars like \t, \r, \n, \b needed to be exemted from words being reversed. but no, this was more than what was required.
elegant!
i thought about using math on ASCII, good solution.