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

Since NUL-terminated `CString` is much more common in foreign APIs than `CStringLen`, one should not have to manually build these functions out of `peekCStringLen`, `withCStringLen` (and perhaps get it wrong,...

API Addition (PVP minor)

I'm opening this issue due to @Bodigrim's advice: The people at Kowainik (cc @vrom911, @chshersh) have produced very good ergonomics when it comes to string types conversion. Functions like `toText`,...

feature request

Hi, may I suggest adding conversion functions such as import qualified Data.Text as T import qualified Data.Text.Lazy as T (toStrict) import qualified Data.Text.Lazy.Builder as B import qualified Data.Text.Lazy.Builder.Int as B...

feature request

I would like to add the following functions to `Data.Text.Lazy.Builder`: ``` toStrictText :: Builder -> Text unlines :: [Builder] -> Builder unwords :: [Builder] -> Builder ``` Additionally, I think...

feature request

There are a few issues with the current situation: + Decoding/encoding from UTF-8 is a really common use case, but requires a separate import (`Data.Text.Encoding`) + The best name (`decodeUtf8`)...

documentation
feature request

This is a trivial composition, but it has been a recurring inconvenience for me for years. Particularly when I'm writing introductory tutorials, it is difficult to explain why among the...

API Addition (PVP minor)
question

Provides part of #244 for `Data.Text`.

API Addition (PVP minor)

This PR adds a template for Pull Requests.

repo

Something like ```diff diff --git a/src/Data/Text/Encoding.hs b/src/Data/Text/Encoding.hs index 239e15e..9b6a01c 100644 --- a/src/Data/Text/Encoding.hs +++ b/src/Data/Text/Encoding.hs @@ -436,7 +436,10 @@ encodeUtf8 (Text arr off len) fp with ptr $ \destPtr -> do...

internal

Presently there is a function `Data.Text.Encoding.decodeLatin1` which decodes a ByteString as Latin1/ISO-8859-1 text to `Text`. It would be very helpful to have a corresponding `encodeLatin1` function to assist in writing...

feature request