You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
0 commit comments