|Version 3 (modified by GregWeber, 5 years ago) (diff)|
Proposal: Opaque Text
Add the Text datatype to the language.
The text package for GHC exposes a Text datatype that represents a string.
The current String = [Char] standard has issues with
- efficiency: there are more efficient representations than linked lists
- correctness: for Unicode correctness, one must operate on a string as a whole rather than individual code points
Promoting Text solves both of these issues.
A complete description of the proposal.
External references, papers, articles, support in other languages.
The changes to the report necessary to implement the proposal. Required for a proposal to move to the "accepted" state.