Safe Haskell | None |
---|---|
Language | Haskell2010 |
Raw binary serialisation
Synopsis
- data RawBytesHexError
- class (HasTypeProxy a, Typeable a) => SerialiseAsRawBytes a where
- serialiseToRawBytes :: a -> ByteString
- deserialiseFromRawBytes :: AsType a -> ByteString -> Either SerialiseAsRawBytesError a
- newtype SerialiseAsRawBytesError = SerialiseAsRawBytesError {}
- serialiseToRawBytesHex :: SerialiseAsRawBytes a => a -> ByteString
- deserialiseFromRawBytesHex :: SerialiseAsRawBytes a => AsType a -> ByteString -> Either RawBytesHexError a
- serialiseToRawBytesHexText :: SerialiseAsRawBytes a => a -> Text
Documentation
data RawBytesHexError Source #
The errors that the pure SerialiseAsRawBytes
parsing/decoding functions can return.
RawBytesHexErrorBase16DecodeFail | |
| |
RawBytesHexErrorRawBytesDecodeFail | |
|
Instances
Show RawBytesHexError Source # | |
Defined in Cardano.Api.SerialiseRaw | |
Error RawBytesHexError Source # | |
Defined in Cardano.Api.SerialiseRaw prettyError :: RawBytesHexError -> Doc ann Source # |
class (HasTypeProxy a, Typeable a) => SerialiseAsRawBytes a where Source #
serialiseToRawBytes :: a -> ByteString Source #
deserialiseFromRawBytes :: AsType a -> ByteString -> Either SerialiseAsRawBytesError a Source #
Instances
newtype SerialiseAsRawBytesError Source #
Instances
Show SerialiseAsRawBytesError Source # | |
Defined in Cardano.Api.SerialiseRaw | |
Eq SerialiseAsRawBytesError Source # | |
Defined in Cardano.Api.SerialiseRaw |
serialiseToRawBytesHex :: SerialiseAsRawBytes a => a -> ByteString Source #
deserialiseFromRawBytesHex :: SerialiseAsRawBytes a => AsType a -> ByteString -> Either RawBytesHexError a Source #
serialiseToRawBytesHexText :: SerialiseAsRawBytes a => a -> Text Source #