text v2.0 Release Notes
-
- Switch internal representation of text from UTF-16 to UTF-8:
- Functions in
Data.Text.Array
now operate over arrays ofWord8
instead ofWord16
. - Rename constructors of
Array
andMArray
toByteArray
andMutableByteArray
. - Rename functions and types in
Data.Text.Foreign
to reflect switch fromWord16
toWord8
. - Rename slicing functions in
Data.Text.Unsafe
to reflect switch fromWord16
toWord8
. - Rename
Data.Text.Internal.Unsafe.Char.unsafeChr
tounsafeChr16
. - Change semantics and order of arguments of
Data.Text.Array.copyI
: pass length, not end offset. - Extend
Data.Text.Internal.Encoding.Utf8
to provide more UTF-8 related routines. - Extend interface of
Data.Text.Array
with more utility functions. - Add
instance Show Data.Text.Unsafe.Iter
. - Add
Data.Text.measureOff
. - Extend
Data.Text.Unsafe
withiterArray
andreverseIterArray
. - Export
Data.Text.Internal.Lazy.equal
. - Export
Data.Text.Internal.append
. - Add
Data.Text.Internal.Private.spanAscii_
. - Replacement characters in
decodeUtf8With
are no longer limited to Basic Multilingual Plane.
- Functions in
- Disable implicit fusion rules
- Add
Data.Text.Encoding.decodeUtf8Lenient
- ๐ Remove
Data.Text.Internal.Unsafe.Shift
- ๐ Remove
Data.Text.Internal.Functions
- Bring type of
Data.Text.Unsafe.reverseIter
in line withiter
- Add
instance Bounded FPFormat
- Add HasCallStack to partial functions
- Switch internal representation of text from UTF-16 to UTF-8: