Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module should be imported as qualified.
Synopsis
- encode :: Monad m => ByteString m r -> Stream (Of Word8) m r
- decode :: Monad m => Stream (Of Word8) m r -> ByteString m (Either Base64Exception r)
- data Base64Exception = PrematureEndOfInput
Documentation
encode :: Monad m => ByteString m r -> Stream (Of Word8) m r Source #
Encode a binary stream in base64 format.
Output will be padded to be always a multiple of 4 bytes in length.
decode :: Monad m => Stream (Of Word8) m r -> ByteString m (Either Base64Exception r) Source #
Decode base64-encoded data into a binary stream.
data Base64Exception Source #
Instances
Eq Base64Exception Source # | |
Defined in Streaming.Base64 (==) :: Base64Exception -> Base64Exception -> Bool # (/=) :: Base64Exception -> Base64Exception -> Bool # | |
Ord Base64Exception Source # | |
Defined in Streaming.Base64 compare :: Base64Exception -> Base64Exception -> Ordering # (<) :: Base64Exception -> Base64Exception -> Bool # (<=) :: Base64Exception -> Base64Exception -> Bool # (>) :: Base64Exception -> Base64Exception -> Bool # (>=) :: Base64Exception -> Base64Exception -> Bool # max :: Base64Exception -> Base64Exception -> Base64Exception # min :: Base64Exception -> Base64Exception -> Base64Exception # | |
Read Base64Exception Source # | |
Defined in Streaming.Base64 | |
Show Base64Exception Source # | |
Defined in Streaming.Base64 showsPrec :: Int -> Base64Exception -> ShowS # show :: Base64Exception -> String # showList :: [Base64Exception] -> ShowS # | |
Exception Base64Exception Source # | |
Defined in Streaming.Base64 |