Safe Haskell | None |
---|---|
Language | Haskell2010 |
Base64 encoding/decoding.
- encode :: ByteString -> Text
- decode :: Text -> Either Text ByteString
- encodeUrl :: ByteString -> Text
- decodeUrl :: Text -> Either Text ByteString
- formatBase64 :: ByteString -> Builder
- base64F :: Format r (ByteString -> r)
- newtype JsonByteString = JsonByteString {}
- newtype JsonByteStringDeprecated = JsonByteStringDeprecated {}
Documentation
encode :: ByteString -> Text Source #
Apply base64 encoding to strict ByteString.
encodeUrl :: ByteString -> Text Source #
Apply base64url encoding to strict ByteString.
formatBase64 :: ByteString -> Builder Source #
Construct Builder from bytestring formatting it in Base64.
base64F :: Format r (ByteString -> r) Source #
Format which uses Base64 to print bytestring.
newtype JsonByteString Source #
Wrapper on top of ByteString with JSON serialization (in base64 encoding).