Hoogle Search

Within LTS Haskell 24.3 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. decodeUtf8With :: OnDecodeError -> 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, invokes the given OnDecodeError function to decide what to do. See Data.Text.Encoding.decodeUtf8With.

  2. decodeUtf8' :: ByteString -> Either UnicodeException Text

    rio RIO.Prelude

    Decode a ByteString containing UTF-8 encoded text. If the input contains any invalid UTF-8 data, the relevant exception will be returned, otherwise the decoded text.

  3. decodeUtf8Lenient :: ByteString -> Text

    rio RIO.Prelude

    No documentation available.

  4. decodeUtf8With :: OnDecodeError -> ByteString -> Text

    rio RIO.Prelude

    Decode a ByteString containing UTF-8 encoded text. Surrogate code points in replacement character returned by OnDecodeError will be automatically remapped to the replacement char U+FFFD.

  5. decodeUtf8' :: ByteString -> Either UnicodeException Text

    rio RIO.Text

    Decode a ByteString containing UTF-8 encoded text. If the input contains any invalid UTF-8 data, the relevant exception will be returned, otherwise the decoded text.

  6. decodeUtf8With :: OnDecodeError -> ByteString -> Text

    rio RIO.Text

    Decode a ByteString containing UTF-8 encoded text. Surrogate code points in replacement character returned by OnDecodeError will be automatically remapped to the replacement char U+FFFD.

  7. decodeUtf8Strict :: ConvertUtf8 a b => b -> Either UnicodeException a

    relude Relude.String.Conversion

    Decode as utf8 string but returning execption if byte sequence is malformed.

    >>> decodeUtf8 @Text @ByteString "\208\208\176\209\130\208\176\208\186"
    "\65533\1072\1090\1072\1082"
    
    >>> decodeUtf8Strict @Text @ByteString "\208\208\176\209\130\208\176\208\186"
    Left Cannot decode byte '\xd0': ...: Invalid UTF-8 stream
    

  8. decodeUtf8' :: ByteString -> Either UnicodeException Text

    relude Relude.String.Reexport

    Decode a ByteString containing UTF-8 encoded text. If the input contains any invalid UTF-8 data, the relevant exception will be returned, otherwise the decoded text.

  9. decodeUtf8With :: OnDecodeError -> ByteString -> Text

    relude Relude.String.Reexport

    Decode a ByteString containing UTF-8 encoded text. Surrogate code points in replacement character returned by OnDecodeError will be automatically remapped to the replacement char U+FFFD.

  10. decodeUtf8ByteArray :: Decoder s ByteArray

    serialise Codec.Serialise.Decoding

    Decode a textual string as UTF-8 encoded ByteArray. Note that the result is not validated to be well-formed UTF-8. Also note that this will eagerly copy the content out of the input to ensure that the input does not leak in the event that the ByteArray is live but not forced.

Page 5 of many | Previous | Next