Hoogle Search
Within LTS Haskell 22.21 (ghc-9.6.5)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
decodeUtf8 :: ByteString -> Texttext Data.Text.Encoding Decode a ByteString containing UTF-8 encoded text that is known to be valid. If the input contains any invalid UTF-8 data, an exception will be thrown that cannot be caught in pure code. For more control over the handling of invalid data, use decodeUtf8' or decodeUtf8With. This is a partial function: it checks that input is a well-formed UTF-8 sequence and copies buffer or throws an error otherwise.
decodeUtf8 :: ByteString -> Texttext Data.Text.Lazy.Encoding Decode a ByteString containing UTF-8 encoded text that is known to be valid. If the input contains any invalid UTF-8 data, an exception will be thrown that cannot be caught in pure code. For more control over the handling of invalid data, use decodeUtf8' or decodeUtf8With.
decodeUtf8 :: MonadThrow m => ConduitT ByteString Text m ()conduit Data.Conduit.Combinators Decode a stream of binary data as UTF8.
decodeUtf8 :: forall (m :: Type -> Type) . MonadThrow m => ConduitT ByteString Text m ()conduit-extra Data.Conduit.Text Decode a stream of binary data as UTF8.
decodeUtf8 :: InputStream ByteString -> IO (InputStream Text)io-streams System.IO.Streams.Text Decode an InputStream of ByteStrings in UTF-8 format into an InputStream of Text values. If decoding fails, will throw an exception. See Data.Text.Encoding.decodeUtf8.
decodeUtf8 :: Utf8 textual binary => binary -> textualmono-traversable Data.Sequences Note that this function is required to be pure. In the case of a decoding error, Unicode replacement characters must be used.
decodeUtf8 :: ByteString -> DecodeResultstreaming-commons Data.Streaming.Text O(n) Convert a ByteString into a 'Stream Char', using UTF-8 encoding.
decodeUtf8 :: ConvertUtf8 a b => b -> arelude Relude.String.Conversion Decode from utf8 string.
>>> decodeUtf8 @Text @ByteString "\208\191\208\176\209\130\208\176\208\186" "\1087\1072\1090\1072\1082" >>> putTextLn $ decodeUtf8 @Text @ByteString "\208\191\208\176\209\130\208\176\208\186" патак
decodeUtf8 :: ByteString -> Textprotolude Protolude Decode a ByteString containing UTF-8 encoded text that is known to be valid. If the input contains any invalid UTF-8 data, an exception will be thrown that cannot be caught in pure code. For more control over the handling of invalid data, use decodeUtf8' or decodeUtf8With. This is a partial function: it checks that input is a well-formed UTF-8 sequence and copies buffer or throws an error otherwise.
decodeUtf8 :: ByteString -> Textbasic-prelude BasicPrelude Note that this is not the standard Data.Text.Encoding.decodeUtf8. That function will throw impure exceptions on any decoding errors. This function instead uses decodeLenient.
Page 1 of many | Next