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.

  1. decodeUtf8 :: ByteString -> Text

    text 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.

  2. decodeUtf8 :: ByteString -> Text

    text 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.

  3. decodeUtf8 :: MonadThrow m => ConduitT ByteString Text m ()

    conduit Data.Conduit.Combinators

    Decode a stream of binary data as UTF8.

  4. decodeUtf8 :: forall (m :: Type -> Type) . MonadThrow m => ConduitT ByteString Text m ()

    conduit-extra Data.Conduit.Text

    Decode a stream of binary data as UTF8.

  5. 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.

  6. decodeUtf8 :: Utf8 textual binary => binary -> textual

    mono-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.

  7. decodeUtf8 :: ByteString -> DecodeResult

    streaming-commons Data.Streaming.Text

    O(n) Convert a ByteString into a 'Stream Char', using UTF-8 encoding.

  8. decodeUtf8 :: ConvertUtf8 a b => b -> a

    relude 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"
    патак
    

  9. decodeUtf8 :: ByteString -> Text

    protolude 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.

  10. decodeUtf8 :: ByteString -> Text

    basic-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