Safe Haskell | None |
---|---|
Language | Haskell2010 |
Miscellaneous shortcut functions, mostly for internal use.
- b64 :: ByteArrayAccess a => a -> ByteString
- b64dec :: ByteArrayAccess a => a -> Either String ByteString
- b64url :: ByteArrayAccess a => a -> ByteString
- b64urldec :: ByteString -> Either String ByteString
- b16 :: ByteString -> ByteString
- parseExpMsec :: ByteString -> Maybe NominalDiffTime
- justRight :: e -> Maybe a -> Either e a
- rightJust :: Either e a -> Maybe a
Base64
b64 :: ByteArrayAccess a => a -> ByteString Source #
Shorthand for encode in Base64.
b64dec :: ByteArrayAccess a => a -> Either String ByteString Source #
b64url :: ByteArrayAccess a => a -> ByteString Source #
b64urldec :: ByteString -> Either String ByteString Source #
b16 :: ByteString -> ByteString Source #
Shorthand for hex encode
Time parsing
parseExpMsec :: ByteString -> Maybe NominalDiffTime Source #
Reads a positive integer time value in milliseconds. This is for parsing ttls or expiry times written as milliseconds since the unix epoch.