@@ -350,9 +350,13 @@ instance Read Text where
350350 readsPrec p str = [(pack x,y) | (x,y) <- readsPrec p str]
351351
352352#if MIN_VERSION_base(4,9,0)
353−-- Semigroup orphan instances for older GHCs are provided by
354−-- 'semigroups` package
355−
353+-- | Non-orphan 'Semigroup' instance only defined for
354+-- @base-4.9.0.0@ and later; orphan instances for older GHCs are
355+-- provided by
356+-- the [semigroups](http://hackage.haskell.org/package/semigroups)
357+-- package
358+--
359+-- @since 1.2.2.0
356360instance Semigroup Text where
357361 (<>) = append
358362#endif
@@ -415,6 +419,8 @@ instance Data Text where
415419
416420#if MIN_VERSION_base(4,7,0)
417421-- | Only defined for @base-4.7.0.0@ and later
422+--
423+-- @since 1.2.2.0
418424instance PrintfArg Text where
419425 formatArg txt = formatString $ unpack txt
420426#endif
@@ -1195,6 +1201,8 @@ takeWhile p t@(Text arr off len) = loop 0
11951201-- Examples:
11961202--
11971203-- > takeWhileEnd (=='o') "foo" == "oo"
1204+--
1205+-- @since 1.2.2.0
11981206takeWhileEnd :: (Char -> Bool) -> Text -> Text
11991207takeWhileEnd p t@(Text arr off len) = loop (len-1) len
12001208 where loop !i !l | l <= 0 = t