I'm getting a "no parse" error when I test these functions (with input of ordinary integers) and I don't know why. What am I doing wrong here?
lastLetter :: String -> String
lastLetter (l:[]) = [l]
lastLetter (l:ls) = lastLetter(ls)
lastDigit :: Integer -> Integer
lastDigit = read . lastLetter . show