Skip to content

Commit

Permalink
Add @since annotation to decodeUtf8Lenient
Browse files Browse the repository at this point in the history
  • Loading branch information
Lysxia committed Sep 14, 2024
1 parent e4e110e commit fedf457
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Data/Text/Encoding.hs
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,8 @@ decodeUtf8' = unsafeDupablePerformIO . try . evaluate . decodeUtf8With strictDec
--
-- Any invalid input bytes will be replaced with the Unicode replacement
-- character U+FFFD.
--
-- @since 2.0
decodeUtf8Lenient :: ByteString -> Text
decodeUtf8Lenient = decodeUtf8With lenientDecode

Expand Down

0 comments on commit fedf457

Please sign in to comment.