📅  最后修改于: 2022-03-11 14:53:35.199000             🧑  作者: Mango
-- 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"]