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

The compile time for `texmath-0.12.5.2` with GHC 9.2.4 roughly doubles from 68s to 141s when I use `text-2.0.1` vs. `text-1.2.5.0`. A module that is particularly affected is [`Text.TeXMath.Readers.MathML.EntityMap`](https://hackage.haskell.org/package/texmath-0.12.5.2/docs/src/Text.TeXMath.Readers.MathML.EntityMap.html) which has...

Occasionally, when I run the tests, t_toCaseFold_char results in a failure. t_toCaseFold_char: FAIL *** Failed! Falsified (after 95 tests and 1 shrink): '\43953' "\5089" /= "\43953" Use --quickcheck-replay=356345 to reproduce....

I've been wanting this feature for a while, so I decided to prototype it and create a pull request.

The documentation for [`scanl`](https://hackage.haskell.org/package/text-1.2.5.0/docs/Data-Text.html#v:scanl) was probably taken straight from `Data.List` but is a little confusing in the context of `Text` (I also am not very clear on whether scans make...

documentation

Implements `codepointOffset` with code from the FreeBSD project. I'm planning to explore making a vectorised implementation of the searching for 2, 3 and 4 char codepoints, but will leave that...

Closes report: #368 Function to detect ordered subsequences in the content.

API Addition (PVP minor)

```haskell findCharIndex :: Char -> Text -> Maybe Int ``` When having look at #369, it looks like having access to this primitive, with a fast C implementation that uses...

feature request

Function to print text with newline performs it as two separate actions - first is to print message and second - to print newline symbol. This way there is issues...

documentation
feature request
question

Based on discussion in #442, having a way to write a text builder directly to a handle, like [bytestring's `hPutBuilder`](https://hackage.haskell.org/package/bytestring-0.11.3.1/docs/Data-ByteString-Builder.html#v:hPutBuilder) might be a nice performance win in some situations.

feature request

`Data.Text.replace` errors if the *needle* is the empty string. Every other implementation I tried matches the empty string against every position in the string. I suggest that for consistency with...

feature request
question