I am trying to write a function removeSpaces that once handed a string it will remove any spaces found within it.
What I got so far is:
import Data.Char
removeSpaces :: [Char] -> [Char]
removeSpaces [] = []
removeSpaces xs = filter isAlpha xs
This however keeps giving me the message "not in scope: data constructor" with the pieces of the string that are before and after any spaces within the String. Any help with this would be great.