| ... | @@ -23,7 +23,22 @@ GHC |
... | @@ -23,7 +23,22 @@ GHC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
A short summary of the extension/modification.
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
## Description
|
|
## Description
|
| ... | | ... | |