on master help sign in
text/changelog.md
164 lines 4.7 kB history raw
11.2.2.1
3* The switch to `integer-pure` in 1.2.2.0 was apparently mistaken.
4 The build flag has been renamed accordingly. Your army of diligent
5 maintainers apologizes for the churn.
7* Spec compliance: toCaseFold now follows the Unicode 8.0 spec
8 (updated from 7.0)
10* An STG lint error has been fixed
121.2.2.0
14* The `integer-simple` package, upon which this package optionally
15 depended, has been replaced with `integer-pure`. The build flag has
16 been renamed accordingly.
18* Bug fix: For the `Binary` instance, If UTF-8 decoding fails during a
19 `get`, the error is propagated via `fail` instead of an uncatchable
20 crash.
22* New function: `takeWhileEnd`
24* New instances for the `Text` types:
25 * if `base` >= 4.7: `PrintfArg`
26 * if `base` >= 4.9: `Semigroup`
281.2.1.3
30* Bug fix: As it turns out, moving the literal rewrite rules to simplifier
31 phase 2 does not prevent competition with the `unpack` rule, which is
32 also active in this phase. Unfortunately this was hidden due to a silly
33 test environment mistake. Moving literal rules back to phase 1 finally
34 fixes GHC Trac #10528 correctly.
361.2.1.2
38* Bug fix: Run literal rewrite rules in simplifier phase 2.
39 The behavior of the simplifier changed in GHC 7.10.2,
40 causing these rules to fail to fire, leading to poor code generation
41 and long compilation times. See
42 [GHC Trac #10528](https://ghc.haskell.org/trac/ghc/ticket/10528).
441.2.1.1
46* Expose unpackCString#, which you should never use.
481.2.1.0
50* Added Binary instances for both Text types. (If you have previously
51 been using the text-binary package to get a Binary instance, it is
52 now obsolete.)
541.2.0.6
56* Fixed a space leak in UTF-8 decoding
581.2.0.5
60* Feature parity: repeat, cycle, iterate are now implemented for lazy
61 Text, and the Data instance is more complete
63* Build speed: an inliner space explosion has been fixed with toCaseFold
65* Bug fix: encoding Int to a Builder would infinite-loop if the
66 integer-simple package was used
68* Deprecation: OnEncodeError and EncodeError are deprecated, as they
69 are never used
71* Internals: some types that are used internally in fusion-related
72 functions have moved around, been renamed, or been deleted (we don't
73 bump the major version if .Internal modules change)
75* Spec compliance: toCaseFold now follows the Unicode 7.0 spec
76 (updated from 6.3)
781.2.0.4
80* Fixed an incompatibility with base < 4.5
821.2.0.3
84* Update formatRealFloat to correspond to the definition in versions
85 of base newer than 4.5 (https://github.com/bos/text/issues/105)
871.2.0.2
89* Bumped lower bound on deepseq to 1.4 for compatibility with the
90 upcoming GHC 7.10
921.2.0.1
94* Fixed a buffer overflow in rendering of large Integers
95 (https://github.com/bos/text/issues/99)
971.2.0.0
99* Fixed an integer overflow in the replace function
100 (https://github.com/bos/text/issues/81)
102* Fixed a hang in lazy decodeUtf8With
103 (https://github.com/bos/text/issues/87)
105* Reduced codegen bloat caused by use of empty and single-character
106 literals
108* Added an instance of IsList for GHC 7.8 and above
1101.1.1.0
112* The Data.Data instance now allows gunfold to work, via a virtual
113 pack constructor
115* dropEnd, takeEnd: new functions
117* Comparing the length of a Text against a number can now
118 short-circuit in more cases
1201.1.0.1
122* streamDecodeUtf8: fixed gh-70, did not return all unconsumed bytes
123 in single-byte chunks
1251.1.0.0
127* encodeUtf8: Performance is improved by up to 4x.
129* encodeUtf8Builder, encodeUtf8BuilderEscaped: new functions,
130 available only if bytestring >= 0.10.4.0 is installed, that allow
131 very fast and flexible encoding of a Text value to a bytestring
132 Builder.
134 As an example of the performance gain to be had, the
135 encodeUtf8BuilderEscaped function helps to double the speed of JSON
136 encoding in the latest version of aeson! (Note: if all you need is a
137 plain ByteString, encodeUtf8 is still the faster way to go.)
139* All of the internal module hierarchy is now publicly exposed. If a
140 module is in the .Internal hierarchy, or is documented as internal,
141 use at your own risk - there are no API stability guarantees for
142 internal modules!
1441.0.0.1
146* decodeUtf8: Fixed a regression that caused us to incorrectly
147 identify truncated UTF-8 as valid (gh-61)
1491.0.0.0
151* Added support for Unicode 6.3.0 to case conversion functions
153* New function toTitle converts words in a string to title case
155* New functions peekCStringLen and withCStringLen simplify
156 interoperability with C functionns
158* Added support for decoding UTF-8 in stream-friendly fashion
160* Fixed a bug in mapAccumL
162* Added trusted Haskell support
164* Removed support for GHC 6.10 (released in 2008) and older