Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outdated reference to utf16 Data.Text in docs #119

Closed
sullyj3 opened this issue May 5, 2022 · 1 comment
Closed

Outdated reference to utf16 Data.Text in docs #119

sullyj3 opened this issue May 5, 2022 · 1 comment

Comments

@sullyj3
Copy link

sullyj3 commented May 5, 2022

same design; it is likewise backed by arrays. Rather surprisingly, the storage
backing Text objects are encoded in UTF-16, meaning every time you want to
work with unicode characters that came in from /anywhere/ else and which
inevitably are UTF-8 encoded you have to convert to UTF-16 and copy into a new
array, wasting time and memory.

I believe this is out of date as of haskell/text#365

@istathar
Copy link
Member

istathar commented May 9, 2022

Yeah, I've been waiting for text 2.0 to propagate. Once people are more widely able to use GHC 9.0 and lts-19.x and we're able to remove the conversion step that'll be great. You're right, though, this comment is now dated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants