on master help sign in
Improve error message.
3b0634bBryan O'Sullivan
Data/Text/Encoding.hs+2−1
@@ -120,7 +120,8 @@ decodeUtf8With onErr bs = textP (fst a) 0 (snd a)
120 desc = "Data.Text.Encoding.decodeUtf8: Invalid UTF-8 stream"
120 desc = "Data.Text.Encoding.decodeUtf8: Invalid UTF-8 stream"
121{-# INLINE[0] decodeUtf8With #-}
121{-# INLINE[0] decodeUtf8With #-}
122
122
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.
124--
125--
125-- If the input contains any invalid UTF-8 data, an exception will be
126-- If the input contains any invalid UTF-8 data, an exception will be
126-- thrown that cannot be caught in pure code. For more control over
127-- thrown that cannot be caught in pure code. For more control over