@@ -71,10 +71,13 @@ import qualified Data.Text.Lazy.Fusion as F
7171-- 'decodeUtf8With' allows the programmer to determine what to do on a
7272-- decoding error.
7373
74−-- | Decode a 'ByteString' containing 7-bit ASCII encoded text.
74+-- | /Deprecated/. Decode a 'ByteString' containing 7-bit ASCII
75+-- encoded text.
76+--
77+-- This function is deprecated. Use 'decodeUtf8' instead.
7578decodeASCII :: B.ByteString -> Text
76−decodeASCII bs = foldr (chunk . TE.decodeASCII) empty (B.toChunks bs)
77−{-# INLINE decodeASCII #-}
79+decodeASCII = decodeUtf8
80+{-# DEPRECATED decodeASCII "Use decodeUtf8 instead" #-}
7881
7982-- | Decode a 'ByteString' containing UTF-8 encoded text.
8083decodeUtf8With :: OnDecodeError -> B.ByteString -> Text