text
text copied to clipboard
lines is not equivalent to (splitOn "\n")
λ> Data.Text.lines "\n"
[""]
λ> Data.Text.splitOn "\n" "\n"
["",""]
This surprised me a bit. I think it should be documented at least.
The behaviour of Data.Text.lines
is matching Data.List.lines
. It would be nice to mention this in documentation indeed.