Closed BebeSparkelSparkel closed 5 months ago
I merged with master (adapting to changes from #600 which moved the logic of hPutStr
to Data.Text.Internal.IO.hPutStream
) (this PR is squashable, just not rebaseable) and added a comment about why the pointer-equality is fine (I initially thought it had to be guarded as enc `unsafePtrEquality` utf8 || enc == utf8
but convinced myself otherwise).
@Lysxia shall we drop GHC 8.2 CI job?
Thanks a ton!
Data.Text.IO.Utf8.hPutStr
was implemented in #503 and has much better performance thanData.Text.IO.hPutStr
when the encoding is"UTF-8"
and the neline isLF
, so I added it.Question: Is there a faster way to check for the encoding without checking for string equality?