on master help sign in
Improve error message.
commit3b0634bc866fd22175ef236ea3c61b147bb10290 authorBryan O'Sullivan <bos@serpentine.com> dateTue 15 Mar 2011, 20:42 (16 years ago) parent6cff0e0
1 file changed+2−1
Data/Text/Encoding.hs+2−1
Data/Text/Encoding.hs+2−1
@@ -120,7 +120,8 @@ decodeUtf8With onErr bs = textP (fst a) 0 (snd a)
120120 desc = "Data.Text.Encoding.decodeUtf8: Invalid UTF-8 stream"
121121{-# INLINE[0] decodeUtf8With #-}
122122
123−-- | Decode a 'ByteString' containing known-valid UTF-8 encoded text.
123+-- | Decode a 'ByteString' containing UTF-8 encoded text that is known
124+-- to be valid.
124125--
125126-- If the input contains any invalid UTF-8 data, an exception will be
126127-- thrown that cannot be caught in pure code. For more control over