Safe Haskell | None |
---|
JWS, JWE and some related specifications provide for compact representations of certain types. This module defines classes and functions for working with such data.
- class FromCompact a where
- fromCompact :: [ByteString] -> Either Error a
- decodeCompact :: FromCompact a => ByteString -> Either Error a
- class ToCompact a where
- toCompact :: a -> Either Error [ByteString]
- encodeCompact :: ToCompact a => a -> Either Error ByteString
Documentation
class FromCompact a whereSource
Data that can be parsed from a compact representation.
fromCompact :: [ByteString] -> Either Error aSource
decodeCompact :: FromCompact a => ByteString -> Either Error aSource
Decode a compact representation.
Data that can be converted to a compact representation.
toCompact :: a -> Either Error [ByteString]Source
encodeCompact :: ToCompact a => a -> Either Error ByteStringSource
Encode data to a compact representation.