Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Data.Text.IO.Utf8: use B.putStrLn instead of B.putStr t >> B.putStr "\n"
This is not just a stylistic change: it also improves atomicity of putStrLn in concurrent environment, when multiple threads attempt to execute it at once. See https://www.snoyman.com/blog/2016/11/haskells-missing-concurrency-basics/ (Now B.putStrLn is not perfect either, but that's the problem to solve in bytestring)
- Loading branch information