Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Base64String = Base64String {}
- base64String :: ByteArray ba => ba -> Either String Base64String
- fromBytes :: ByteArrayAccess ba => ba -> Base64String
- toBytes :: ByteArray ba => Base64String -> ba
- toText :: Base64String -> Text
- format :: Base64String -> Text
Documentation
newtype Base64String Source #
Represents a Hex string. Guarantees that all characters it contains are valid hex characters.
Instances
base64String :: ByteArray ba => ba -> Either String Base64String Source #
Smart constructor that works with any mixed casing of characters: `Base64String AA == Base64String "0xAa" == Base64String "0xaA" == Base64String "aa"`
fromBytes :: ByteArrayAccess ba => ba -> Base64String Source #
Reads a raw bytes and converts to hex representation.
toBytes :: ByteArray ba => Base64String -> ba Source #
Access to the raw bytes of Base64String
.
toText :: Base64String -> Text Source #
Access to a Text
representation of the Base64String
format :: Base64String -> Text Source #
Access to a Text
representation of the Base64String