-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lines & unlines #28
Comments
I don't like this very much, even on Windows if you open a file in text mode then you'll get Leaving this open for discussion though. |
It would be really useful to have The intuition any beginner Haskeller gets from using the I'd be happy to send a PR if the maintainers are fine with it. I wasted half a day finding a bug in a parser only to find that it was working under the assumption that the There should at least be a line in the documentation in bold letters saying that |
* add haddock comments about the behaviour of IsString instances (#140) * Correct the documentation of split and so on (fixes #161) * Document the behaviour of unsafeUseAsCStringLen when BS.empty is passed (fixes #207) * s/encodeListWithB/primMapListBounded/ (fixes #50) * Fix broken links in Data.ByteString.Prim * Fix all missing Haddock links * Note that `lines` doesn't handle CR (#28) * encodeByteStringWithF seems to actually mean primMapByteStringFixed
I cannot find any special treatment for > lines "foo\r\nbar"
["foo\r","bar"] So I'm in favor of closing this. |
I agree with closing this issue. |
In Bytestring, String and Text EOL always '\n', but in windows its \r\n
how about separate version for lines, unlines?
lines can be universal, and unlines like
unlinesUniversal :: EOL -> [ByteString] -> ByteString
Its not critical, but can be useful.
The text was updated successfully, but these errors were encountered: