fixed-vector-cborg-1.0.0.2: Binary instances for fixed-vector
Safe HaskellNone
LanguageHaskell2010

Data.Vector.Fixed.Instances.CBOR

Description

Module with binary instances for data types defined in fixed vector

Synopsis

Documentation

encodeFixedVector :: (Vector v a, Serialise a) => v a -> Encoding Source #

Encode vector with statically known size as CBOR list. There's no type tag

decodeFixedVector :: forall v s a. (Vector v a, Serialise a) => Decoder s (v a) Source #

Decode vector with statically known size as CBOR list. There's no type tag

Orphan instances

Serialise a => Serialise (Only a) Source # 
Instance details

Methods

encode :: Only a -> Encoding #

decode :: Decoder s (Only a) #

encodeList :: [Only a] -> Encoding #

decodeList :: Decoder s [Only a] #

(Unbox n a, Serialise a) => Serialise (Vec n a) Source # 
Instance details

Methods

encode :: Vec n a -> Encoding #

decode :: Decoder s (Vec n a) #

encodeList :: [Vec n a] -> Encoding #

decodeList :: Decoder s [Vec n a] #

(Arity n, Storable a, Serialise a) => Serialise (Vec n a) Source # 
Instance details

Methods

encode :: Vec n a -> Encoding #

decode :: Decoder s (Vec n a) #

encodeList :: [Vec n a] -> Encoding #

decodeList :: Decoder s [Vec n a] #

(Arity n, Prim a, Serialise a) => Serialise (Vec n a) Source # 
Instance details

Methods

encode :: Vec n a -> Encoding #

decode :: Decoder s (Vec n a) #

encodeList :: [Vec n a] -> Encoding #

decodeList :: Decoder s [Vec n a] #

(Arity n, Serialise a) => Serialise (Vec n a) Source # 
Instance details

Methods

encode :: Vec n a -> Encoding #

decode :: Decoder s (Vec n a) #

encodeList :: [Vec n a] -> Encoding #

decodeList :: Decoder s [Vec n a] #

(Arity n, Serialise a) => Serialise (VecList n a) Source # 
Instance details

Methods

encode :: VecList n a -> Encoding #

decode :: Decoder s (VecList n a) #

encodeList :: [VecList n a] -> Encoding #

decodeList :: Decoder s [VecList n a] #

Serialise (Empty a) Source # 
Instance details