Changelog History
Page 1
-
v2.0 Changes
- 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:
-
v1.2.5.0 Changes
- ๐ Support sized primitives from GHC 9.2
- Allow
template-haskell-2.18.0.0
- Add
elem :: Char -> Text -> Bool
toData.Text
andData.Text.Lazy
- ๐ Replace surrogate code points in
Data.Text.Internal.Builder.{singleton,fromString}
- Use
unsafeWithForeignPtr
when available - Use vectorized CPU instructions for decoding and encoding
- Regenerate case mapping in accordance to Unicode 13.0
- โ Fix UTF-8 decoding of lazy bytestrings
-
v1.2.4.2 Changes
- ๐ Support GHC-9.2
-
v1.2.4.1 Changes
- ๐ Support
template-haskell-2.17.0.0
- ๐ Support
bytestring-0.11
- โ Add
take . drop
related RULE
- ๐ Support
-
v1.2.4.0 Changes
June 28, 2019โ Add TH
Lift
instances forData.Text.Text
andData.Text.Lazy.Text
(gh-232)๐ Update Haddock documentation to better reflect fusion eligibility; improve fusion rules for
takeWhileEnd
andlength
(gh-241, ghc-202)๐ฒ Optimise
Data.Text.replicate
fromO(n)
toO(log n)
(gh-209)๐ Support
base-4.13.0.0
-
v1.2.3.2
February 15, 2020 -
v1.2.3.1 Changes
September 22, 2018๐ Make
decodeUtf8With
fail explicitly for unsupported non-BMP replacement characters instead silent undefined behaviour (gh-213)๐ Fix termination condition for file reads via
Data.Text.IO
operations (gh-223)A serious correctness issue affecting uses of
take
anddrop
with negative counts has been fixed (gh-227)A bug in the case-mapping functions resulting in unreasonably large allocations with large arguments has been fixed (gh-221)
-
v1.2.3.0 Changes
December 27, 2017Spec compliance:
toCaseFold
now follows the Unicode 9.0 spec (updated from 8.0).๐ Bug fix: the lazy
takeWhileEnd
function violated the lazy text invariant (gh-184).๐ Bug fix: Fixed usage of size hints causing incorrect behavior (gh-197).
๐ New function:
unsnoc
(gh-173).โฌ๏ธ Reduce memory overhead in
encodeUTF8
(gh-194).๐ Improve UTF-8 decoder error-recovery (gh-182).
๐ Minor documentation improvements (
@since
annotations, more examples, clarifications).
-
v1.2.2.2 Changes
May 21, 2017The
toTitle
function now correctly handles letters that immediately follow punctuation. Before,"there's"
would turn into"There'S"
. Now, it becomes"There's"
.The implementation of unstreaming is faster, resulting in operations such as
map
andintersperse
speeding up by up to 30%, with smaller code generated.The optimised length comparison function is now more likely to be used after some rewrite rule tweaking.
๐ Bug fix: an off-by-one bug in
takeEnd
is fixed.๐ Bug fix: a logic error in
takeWord16
is fixed.
-
v1.2.2.1 Changes
March 17, 2016The switch to
integer-pure
in 1.2.2.0 was apparently mistaken. The build flag has been renamed accordingly. Your army of diligent maintainers apologizes for the churn.Spec compliance:
toCaseFold
now follows the Unicode 8.0 spec (updated from 7.0)๐ An STG lint error has been fixed