Hoogle Search

Within LTS Haskell 24.2 (ghc-9.10.2)

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

  1. decodeUtf8 :: DecodeUtf8 t => ByteString -> Either String t

    brick Brick.Widgets.Edit

    Decode a bytestring assumed to be text in UTF-8 encoding. If the decoding fails, return Left. This must not raise exceptions.

  2. decodeUtf8 :: String -> (String, [String])

    hxt-unicode Data.String.UTF8Decoding

    calls decode for parsing and decoding UTF-8

  3. decodeUtf8 :: ByteString -> Maybe IPv4

    ip Net.IPv4

    Decode a UTF8-encoded ByteString into an IPv4.

    >>> IPv4.decodeUtf8 "192.168.2.47"
    Just (ipv4 192 168 2 47)
    
    Currently not terribly efficient since the implementation re-encodes the argument as UTF-16 text before decoding that IPv4 address from that. PRs to fix this are welcome.

  4. decodeUtf8 :: ByteString -> Maybe Mac

    ip Net.Mac

    Lenient decoding of MAC address that accepts lowercase, uppercase, and any kind of separator.

    >>> Mac.decodeUtf8 "A2:DE:AD:BE:EF:67"
    Just (mac 0xa2deadbeef67)
    
    >>> Mac.decodeUtf8 "13-a2-fe-a4-17-96"
    Just (mac 0x13a2fea41796)
    
    >>> Mac.decodeUtf8 "0A42.47BA.67C2"
    Just (mac 0x0a4247ba67c2)
    

  5. decodeUtf8 :: ByteString -> Maybe Country

    country Country

    Decode a Country from a UTF-8-encoded ByteString.

  6. decodeUtf8 :: [CodeUnit] -> [CodePoint]

    alfred-margaret Data.Text.Utf8

    Decode a list of UTF-8 code units into a list of code points.

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

    incipit-base Incipit.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"
    патак
    

  8. decodeUtf8 :: forall (m :: Type -> Type) . Monad m => Stream m Word8 -> Stream m Char

    streamly-core Streamly.Internal.Unicode.Stream

    Decode a UTF-8 encoded bytestream to a stream of Unicode characters. Any invalid codepoint encountered is replaced with the unicode replacement character.

  9. decodeUtf8 :: forall (m :: Type -> Type) . Monad m => Stream m Word8 -> Stream m Char

    streamly-core Streamly.Unicode.Stream

    Decode a UTF-8 encoded bytestream to a stream of Unicode characters. Any invalid codepoint encountered is replaced with the unicode replacement character.

  10. decodeUTF8 :: ByteString -> [Word32]

    utf8-light Codec.Binary.UTF8.Light

    No documentation available.

Page 2 of many | Previous | Next