I am trying to do some simple text processing in Haskell, and I am wondering what is best for me to do this in FP. I looked at the parsec module, but it seems a lot more complicated than what I am looking for as a new Haskeller. What would be the best way to remove all punctuation from the body of the text? My naive approach was to make a function like this:
removePunc str = [c | c <- str, c /= '.', c /= '?', c /= '.', c /= '!', c /= '-', c /= ';', c /= '\'', c /= '\"',]
haskell nlp
turtle
source share