| ... | @@ -17,7 +17,19 @@ GHC |
... | @@ -17,7 +17,19 @@ GHC |
|
|
## Summary
|
|
## Summary
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
| ... | | ... | |