Skip to content

Commit 0b65bae

Browse files
committed
Add since pragmas for StrictText, LazyText, LazyTextBuilder
1 parent 3d4865f commit 0b65bae

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

src/Data/Text/Internal.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ data Text = Text
6666
{-# UNPACK #-} !Int -- ^ length in bytes (not in Char!), pointing to an end of UTF-8 sequence
6767

6868
-- | Type synonym for the strict flavour of 'Text'.
69+
--
70+
-- @since 2.1.1
6971
type StrictText = Text
7072

7173
-- | Smart constructor.

src/Data/Text/Internal/Builder.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ newtype Builder = Builder {
9797
-> ST s [S.Text]
9898
}
9999

100+
-- | @since 2.1.2
100101
type LazyTextBuilder = Builder
101102

102103
instance Semigroup Builder where

src/Data/Text/Internal/Lazy.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ data Text = Empty
5656
-- ^ Chunks must be non-empty, this invariant is not checked.
5757

5858
-- | Type synonym for the lazy flavour of 'Text'.
59+
--
60+
-- @since 2.1.1
5961
type LazyText = Text
6062

6163
-- $invariant

0 commit comments

Comments
 (0)