text icon indicating copy to clipboard operation
text copied to clipboard

Haskell library for space- and time-efficient operations over Unicode text.

Results 86 text issues
Sort by recently updated
recently updated
newest added

In multiple different projects that I have worked on I've encountered variations on the following function: ```haskell tshow :: Show a => a -> Text tshow = T.pack . show...

Just one test took ~25 minutes due to shrinking. https://github.com/haskell/text/actions/runs/9201285542/job/25309228763?pr=590#step:6:1224 Should `noShrinking` be added?

`Data.Text.IO.Utf8.hPutStr` was implemented in #503 and has much better performance than `Data.Text.IO.hPutStr` when the encoding is `"UTF-8"` and the neline is `LF`, so I added it. Question: Is there a...

closes #446 Questions 1. If there is no encoding specified in haCodec, should should hPutBuilderUtf8 be used? 2. Does the write byte buffer actually need to be flushed? 1. Is...

So that hPutBuilder can be used until #586 or similar is pulled.

The test function [`write_read`](https://github.com/haskell/text/blob/f4c2b7ebf3443c0e5ee23a15c6409ac8c83d8b49/tests/Tests/QuickCheckUtils.hs#L243) does not very the encoding. This seems like an important parameter to very to sure that other encodings work properly.

[`writeBlocksRaw`](https://github.com/haskell/text/blob/3f2a71bb1dad5fd8a64f3743b58d765d985723e2/src/Data/Text/IO.hs#L255) uses the same bounds check as [`writeBlocksCRLF`](https://github.com/haskell/text/blob/3f2a71bb1dad5fd8a64f3743b58d765d985723e2/src/Data/Text/IO.hs#L239). `writeBlocksRaw` will always only write one character while `writeBlocksCRLF` can write two. Seems like it should actually be ```haskell | n >=...