Commits

Anonymous committed 6a4f567

Remove incorrect deprecation doc message

The pragma-based deprecation of 'decodeASCII' correctly claims
that 'decodeUtf8' should be used (matching the implementation),
while the documentation string of the function itself recommended
'decodeLatin1' (which does not).

Comments (0)

Files changed (1)

Data/Text/Encoding.hs

 
 -- | /Deprecated/.  Decode a 'ByteString' containing 7-bit ASCII
 -- encoded text.
---
--- This function is deprecated.  Use 'decodeLatin1' instead.
 decodeASCII :: ByteString -> Text
 decodeASCII = decodeUtf8
 {-# DEPRECATED decodeASCII "Use decodeUtf8 instead" #-}