bcc-api-1.99.0
Safe HaskellNone
LanguageHaskell2010

Bcc.Api.SerialiseUsing

Description

Raw binary serialisation

Synopsis

Documentation

newtype UsingRawBytes a Source #

For use with deriving via, to provide ToCBOR and FromCBOR instances, based on the SerialiseAsRawBytes instance.

deriving (ToCBOR, FromCBOR) via (UsingRawBytes Blah)

Constructors

UsingRawBytes a 

Instances

Instances details
(SerialiseAsRawBytes a, Typeable a) ⇒ FromCBOR (UsingRawBytes a) Source # 
Instance details

Defined in Bcc.Api.SerialiseUsing

Methods

fromCBOR ∷ Decoder s (UsingRawBytes a) #

labelProxy (UsingRawBytes a) → Text #

(SerialiseAsRawBytes a, Typeable a) ⇒ ToCBOR (UsingRawBytes a) Source # 
Instance details

Defined in Bcc.Api.SerialiseUsing

Methods

toCBORUsingRawBytes a → Encoding #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (UsingRawBytes a) → Size #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [UsingRawBytes a] → Size #

newtype UsingRawBytesHex a Source #

For use with deriving via, to provide instances for any/all of Show, IsString, ToJSON, FromJSON, ToJSONKey, FromJSONKey' using a hex encoding, based on the SerialiseAsRawBytes instance.

deriving (Show, IsString) via (UsingRawBytesHex Blah)
deriving (ToJSON, FromJSON) via (UsingRawBytesHex Blah)
deriving (ToJSONKey, FromJSONKey) via (UsingRawBytesHex Blah)

Constructors

UsingRawBytesHex a 

Instances

Instances details
SerialiseAsRawBytes a ⇒ Show (UsingRawBytesHex a) Source # 
Instance details

Defined in Bcc.Api.SerialiseUsing

SerialiseAsRawBytes a ⇒ IsString (UsingRawBytesHex a) Source # 
Instance details

Defined in Bcc.Api.SerialiseUsing

(SerialiseAsRawBytes a, Typeable a) ⇒ FromJSON (UsingRawBytesHex a) Source # 
Instance details

Defined in Bcc.Api.SerialiseUsing

Methods

parseJSON ∷ Value → Parser (UsingRawBytesHex a) #

parseJSONList ∷ Value → Parser [UsingRawBytesHex a] #

SerialiseAsRawBytes a ⇒ ToJSON (UsingRawBytesHex a) Source # 
Instance details

Defined in Bcc.Api.SerialiseUsing

Methods

toJSONUsingRawBytesHex a → Value #

toEncodingUsingRawBytesHex a → Encoding #

toJSONList ∷ [UsingRawBytesHex a] → Value #

toEncodingList ∷ [UsingRawBytesHex a] → Encoding #

(SerialiseAsRawBytes a, Typeable a) ⇒ FromJSONKey (UsingRawBytesHex a) Source # 
Instance details

Defined in Bcc.Api.SerialiseUsing

Methods

fromJSONKey ∷ FromJSONKeyFunction (UsingRawBytesHex a)

fromJSONKeyList ∷ FromJSONKeyFunction [UsingRawBytesHex a]

SerialiseAsRawBytes a ⇒ ToJSONKey (UsingRawBytesHex a) Source # 
Instance details

Defined in Bcc.Api.SerialiseUsing

Methods

toJSONKey ∷ ToJSONKeyFunction (UsingRawBytesHex a)

toJSONKeyList ∷ ToJSONKeyFunction [UsingRawBytesHex a]

newtype UsingBech32 a Source #

For use with deriving via, to provide instances for any/all of Show, IsString, ToJSON, FromJSON, ToJSONKey, FromJSONKey' using a bech32 encoding, based on the SerialiseAsBech32 instance.

deriving (Show, IsString) via (UsingBech32 Blah)
deriving (ToJSON, FromJSON) via (UsingBech32 Blah)
deriving (ToJSONKey, FromJSONKey) via (UsingBech32 Blah)

Constructors

UsingBech32 a 

Instances

Instances details
SerialiseAsBech32 a ⇒ Show (UsingBech32 a) Source # 
Instance details

Defined in Bcc.Api.SerialiseUsing

SerialiseAsBech32 a ⇒ IsString (UsingBech32 a) Source # 
Instance details

Defined in Bcc.Api.SerialiseUsing

(SerialiseAsBech32 a, Typeable a) ⇒ FromJSON (UsingBech32 a) Source # 
Instance details

Defined in Bcc.Api.SerialiseUsing

Methods

parseJSON ∷ Value → Parser (UsingBech32 a) #

parseJSONList ∷ Value → Parser [UsingBech32 a] #

SerialiseAsBech32 a ⇒ ToJSON (UsingBech32 a) Source # 
Instance details

Defined in Bcc.Api.SerialiseUsing

Methods

toJSONUsingBech32 a → Value #

toEncodingUsingBech32 a → Encoding #

toJSONList ∷ [UsingBech32 a] → Value #

toEncodingList ∷ [UsingBech32 a] → Encoding #

(SerialiseAsBech32 a, Typeable a) ⇒ FromJSONKey (UsingBech32 a) Source # 
Instance details

Defined in Bcc.Api.SerialiseUsing

Methods

fromJSONKey ∷ FromJSONKeyFunction (UsingBech32 a)

fromJSONKeyList ∷ FromJSONKeyFunction [UsingBech32 a]

SerialiseAsBech32 a ⇒ ToJSONKey (UsingBech32 a) Source # 
Instance details

Defined in Bcc.Api.SerialiseUsing

Methods

toJSONKey ∷ ToJSONKeyFunction (UsingBech32 a)

toJSONKeyList ∷ ToJSONKeyFunction [UsingBech32 a]