Skip to content

Commit

Permalink
Add deprecated-since info to docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
clyring committed Feb 15, 2024
1 parent b297904 commit e1aab36
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Data/ByteString/Builder/Prim.hs
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,8 @@ primMapLazyByteStringBounded w =
-- strings that are free of embedded (overlong-encoded as the two-byte sequence
-- @0xC0 0x80@) null characters.
--
-- Deprecated since @bytestring-0.12.1.0@.
--
-- @since 0.11.0.0
{-# DEPRECATED cstring "Use asciiLiteralCopy instead" #-}
cstring :: Addr# -> Builder
Expand All @@ -677,6 +679,8 @@ cstring s = asciiLiteralCopy (Ptr s) (S.byteCountLiteral s)
-- encoded strings that may contain embedded overlong-encodings (as the
-- two-byte sequence @0xC0 0x80@) of null characters.
--
-- Deprecated since @bytestring-0.12.1.0@.
--
-- @since 0.11.0.0
{-# DEPRECATED cstringUtf8 "Use modUtf8LitCopy instead" #-}
cstringUtf8 :: Addr# -> Builder
Expand Down

0 comments on commit e1aab36

Please sign in to comment.