Right now I'm trying to make a basic function that removes any spaces or commas from a sentence.
stringToIntList :: [Char] -> [Char]
stringToIntList inpt = [ a | a <- inpt, a `elem` [" ",","]]
The problem I'm experiencing is that every type I've tried doesn't work, if I put [Char] it freaks out at commas, if I put [string] it freaks out at spaces, and if I put string it just doesn't recognize a and says it's an error. so I was wondering if there was some type that could work as both a [Char] and a [string].