on master help sign in
Add `@since 1.1.1.*` annotations
18fbd5eHerbert Valerio Riedel
Data/Text.hs+4
@@ -1120,6 +1120,8 @@ iterN n t@(Text _arr _off len) = loop 0 0
1120-- Examples:
1120-- Examples:
1121--
1121--
1122-- > takeEnd 3 "foobar" == "bar"
1122-- > takeEnd 3 "foobar" == "bar"
1123+--
1124+-- @since 1.1.1.0
1123takeEnd :: Int -> Text -> Text
1125takeEnd :: Int -> Text -> Text
1124takeEnd n t@(Text arr off len)
1126takeEnd n t@(Text arr off len)
1125 | n <= 0 = empty
1127 | n <= 0 = empty
@@ -1159,6 +1161,8 @@ drop n t@(Text arr off len)
1159-- Examples:
1161-- Examples:
1160--
1162--
1161-- > dropEnd 3 "foobar" == "foo"
1163-- > dropEnd 3 "foobar" == "foo"
1164+--
1165+-- @since 1.1.1.0
1162dropEnd :: Int -> Text -> Text
1166dropEnd :: Int -> Text -> Text
1163dropEnd n t@(Text arr off len)
1167dropEnd n t@(Text arr off len)
1164 | n <= 0 = t
1168 | n <= 0 = t
Data/Text/Array.hs+4
@@ -80,6 +80,8 @@ import GHC.Word (Word16(..))
80import Prelude hiding (length, read)
80import Prelude hiding (length, read)
81
81
82-- | Immutable array type.
82-- | Immutable array type.
83+--
84+-- The 'Array' constructor is exposed since @text-1.1.1.3@
83data Array = Array {
85data Array = Array {
84 aBA :: ByteArray#
86 aBA :: ByteArray#
85#if defined(ASSERTS)
87#if defined(ASSERTS)
@@ -88,6 +90,8 @@ data Array = Array {
88 }
90 }
89
91
90-- | Mutable array type, for use in the ST monad.
92-- | Mutable array type, for use in the ST monad.
93+--
94+-- The 'MArray' constructor is exposed since @text-1.1.1.3@
91data MArray s = MArray {
95data MArray s = MArray {
92 maBA :: MutableByteArray# s
96 maBA :: MutableByteArray# s
93#if defined(ASSERTS)
97#if defined(ASSERTS)
Data/Text/Lazy.hs+4
@@ -1073,6 +1073,8 @@ take i t0 = take' i t0
1073-- Examples:
1073-- Examples:
1074--
1074--
1075-- > takeEnd 3 "foobar" == "bar"
1075-- > takeEnd 3 "foobar" == "bar"
1076+--
1077+-- @since 1.1.1.0
1076takeEnd :: Int64 -> Text -> Text
1078takeEnd :: Int64 -> Text -> Text
1077takeEnd n t0
1079takeEnd n t0
1078 | n <= 0 = empty
1080 | n <= 0 = empty
@@ -1111,6 +1113,8 @@ drop i t0
1111-- Examples:
1113-- Examples:
1112--
1114--
1113-- > dropEnd 3 "foobar" == "foo"
1115-- > dropEnd 3 "foobar" == "foo"
1116+--
1117+-- @since 1.1.1.0
1114dropEnd :: Int64 -> Text -> Text
1118dropEnd :: Int64 -> Text -> Text
1115dropEnd n t0
1119dropEnd n t0
1116 | n <= 0 = t0
1120 | n <= 0 = t0
Data/Text/Unsafe.hs+2
@@ -98,6 +98,8 @@ reverseIter (Text arr off _len) i
98-- | /O(1)/ Iterate one step backwards through a UTF-16 array,
98-- | /O(1)/ Iterate one step backwards through a UTF-16 array,
99-- returning the delta to add (i.e. a negative number) to give the
99-- returning the delta to add (i.e. a negative number) to give the
100-- next offset to iterate at.
100-- next offset to iterate at.
101+--
102+-- @since 1.1.1.0
101reverseIter_ :: Text -> Int -> Int
103reverseIter_ :: Text -> Int -> Int
102reverseIter_ (Text arr off _len) i
104reverseIter_ (Text arr off _len) i
103 | m < 0xDC00 || m > 0xDFFF = -1
105 | m < 0xDC00 || m > 0xDFFF = -1