Add `@since 1.2.1.*` annotations
commit596f523b15ab05f96b909e08a5299c432b321ba1
authorHerbert Valerio Riedel <hvr@gnu.org>
dateSat 23 Dec 2017, 19:00 (9 years ago)
parent754a01d
Data/Text.hs+1
@@ -381,6 +381,7 @@ instance Exts.IsList Text where
381381instance NFData Text where rnf !_ = ()
382382#endif
383383
384+-- | @since 1.2.1.0
384385instance Binary Text where
385386 put t = put (encodeUtf8 t)
386387 get = do
Data/Text/Lazy.hs+1
@@ -376,6 +376,7 @@ instance NFData Text where
376376 rnf (Chunk _ ts) = rnf ts
377377#endif
378378
379+-- | @since 1.2.1.0
379380instance Binary Text where
380381 put t = put (encodeUtf8 t)
381382 get = do
Data/Text/Show.hs+2
@@ -46,6 +46,8 @@ unpack = S.unstreamList . stream
4646-- fusion.
4747--
4848-- This is exposed solely for people writing GHC rewrite rules.
49+--
50+-- @since 1.2.1.1
4951unpackCString# :: Addr# -> Text
5052unpackCString# addr# = unstream (S.streamCString# addr#)
5153{-# NOINLINE unpackCString# #-}