haskell string split

-- There is a package for this called split.

cabal install split

-- Use it like this:

ghci> import Data.List.Split
ghci> splitOn "," "my,comma,separated,list"
["my","comma","separated","list"]
rng70