import Data.List.Split

example1 = splitOn "." "foo.bar.baz"
-- ["foo","bar","baz"]

example2 = chunksOf 10 "To be or not to be that is the question."
-- ["To be or n","ot to be t","hat is the"," question."]
