Commit 2e76468 1 parent b4d7ce5 commit 2e76468 Copy full SHA for 2e76468
File tree 4 files changed +39
-0
lines changed
4 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1
1
### 2.1.2
2
2
3
+ * [ Update case mappings for Unicode 16.0] ( https://github.com/haskell/text/pull/618 )
4
+
3
5
* [ Add type synonym for lazy builders. Deprecated ` StrictBuilder ` for ` StrictTextBuilder ` ] ( https://github.com/haskell/text/pull/581 )
4
6
7
+ * [ Add ` initsNE ` and ` tailsNE ` ] ( https://github.com/haskell/text/pull/558 )
8
+
9
+ * [ Add ` foldlM' ` ] ( https://github.com/haskell/text/pull/543 )
10
+
11
+ * [ Add ` Data.Text.Foreign.peekCString ` ] ( https://github.com/haskell/text/pull/599 )
12
+
13
+ * [ Add ` Data.Text.show ` and ` Data.Text.Lazy.show ` ] ( https://github.com/haskell/text/pull/608 )
14
+
15
+ * [ Add pattern synonyms ` Empty ` , ` (:<) ` , and ` (:>) ` ] ( https://github.com/haskell/text/pull/619 )
16
+
17
+ * [ Improve precision of ` Data.Text.Read.rational ` ] ( https://github.com/haskell/text/pull/565 )
18
+
19
+ * [ ` Data.Text.IO.Utf8 ` : use ` B.putStrLn ` instead of ` B.putStr t >> B.putStr "\n" ` ] ( https://github.com/haskell/text/pull/579 )
20
+
21
+ * [ ` Data.Text.IO ` and ` Data.Text.Lazy.IO ` : Make ` putStrLn ` more atomic with line or block buffering] ( https://github.com/haskell/text/pull/600 )
22
+
23
+ * [ Integrate UTF-8 ` hPutStr ` to standard ` hPutStr ` ] ( https://github.com/haskell/text/pull/589 )
24
+
25
+ * [ Serialise ` Text ` without going through ` ByteString ` ] ( https://github.com/haskell/text/pull/617 )
26
+
27
+ * [ Make ` splitAt ` strict in its first argument, even if input is empty] ( https://github.com/haskell/text/pull/575 )
28
+
29
+ * [ Improve lazy performance of ` Data.Text.Lazy.inits ` ] ( https://github.com/haskell/text/pull/572 )
30
+
31
+ * [ Implement ` Data.Text.unpack ` and ` Data.Text.toTitle ` directly, without streaming] ( https://github.com/haskell/text/pull/611 )
32
+
33
+ * [ Make ` fromString ` ` INLINEABLE ` instead of ` INLINE ` ] ( https://github.com/haskell/text/pull/571 ) to reduce the size of generated code.
34
+
5
35
### 2.1.1
6
36
7
37
* Add pure Haskell implementations as an alternative to C-based ones,
Original file line number Diff line number Diff line change @@ -1041,6 +1041,8 @@ foldl1' f t = S.foldl1' f (stream t)
1041
1041
{-# INLINE foldl1' #-}
1042
1042
1043
1043
-- | /O(n)/ A monadic version of 'foldl''.
1044
+ --
1045
+ -- @since 2.1.2
1044
1046
foldlM' :: Monad m => (a -> Char -> m a ) -> a -> Text -> m a
1045
1047
foldlM' f z t = S. foldlM' f z (stream t)
1046
1048
{-# INLINE foldlM' #-}
@@ -2096,6 +2098,8 @@ overflowError :: HasCallStack => String -> a
2096
2098
overflowError fun = P. error $ " Data.Text." ++ fun ++ " : size overflow"
2097
2099
2098
2100
-- | Convert a value to 'Text'.
2101
+ --
2102
+ -- @since 2.1.2
2099
2103
show :: Show a => a -> Text
2100
2104
show = pack . P. show
2101
2105
Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ import qualified Data.Text as T
51
51
52
52
data Text = Empty
53
53
-- ^ Empty text.
54
+ --
55
+ -- @since 2.1.2
54
56
| Chunk {- # UNPACK #-} !T. Text Text
55
57
-- ^ Chunks must be non-empty, this invariant is not checked.
56
58
deriving (Typeable )
Original file line number Diff line number Diff line change @@ -853,6 +853,7 @@ foldl1' f t = S.foldl1' f (stream t)
853
853
854
854
-- | /O(n)/ A monadic version of 'foldl''.
855
855
--
856
+ -- @since 2.1.2
856
857
foldlM' :: Monad m => (a -> Char -> m a ) -> a -> Text -> m a
857
858
foldlM' f z t = S. foldlM' f z (stream t)
858
859
{-# INLINE foldlM' #-}
@@ -1828,6 +1829,8 @@ zipWith f t1 t2 = unstream (S.zipWith g (stream t1) (stream t2))
1828
1829
{-# INLINE [0] zipWith #-}
1829
1830
1830
1831
-- | Convert a value to lazy 'Text'.
1832
+ --
1833
+ -- @since 2.1.2
1831
1834
show :: Show a => a -> Text
1832
1835
show = pack . P. show
1833
1836
You can’t perform that action at this time.
0 commit comments