I need to convert an list of Char's ex: ["a","b","c"] into a single String ex: "abc"
What I have tried doesn't work - it returns a 'parse error in pattern.' This is my code:
listToString :: [Char] -> String
listToString [] = ""
listToString x:xs = x ++ listToString xs
Thanks for any help!