ouroboros-network-testing-0.1.0.0: Common modules used for testing in ouroboros-network and ouroboros-consensus
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.Testing.Serialise

Contents

Synopsis

Class

class Serialise a where #

Minimal complete definition

Nothing

Methods

encode ∷ a → Encoding #

decode ∷ Decoder s a #

encodeList ∷ [a] → Encoding #

decodeList ∷ Decoder s [a] #

Instances

Instances details
Serialise Bool 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeBool → Encoding #

decode ∷ Decoder s Bool #

encodeList ∷ [Bool] → Encoding #

decodeList ∷ Decoder s [Bool] #

Serialise Char 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeChar → Encoding #

decode ∷ Decoder s Char #

encodeList ∷ [Char] → Encoding #

decodeList ∷ Decoder s [Char] #

Serialise Double 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeDouble → Encoding #

decode ∷ Decoder s Double #

encodeList ∷ [Double] → Encoding #

decodeList ∷ Decoder s [Double] #

Serialise Float 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeFloat → Encoding #

decode ∷ Decoder s Float #

encodeList ∷ [Float] → Encoding #

decodeList ∷ Decoder s [Float] #

Serialise Int 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeInt → Encoding #

decode ∷ Decoder s Int #

encodeList ∷ [Int] → Encoding #

decodeList ∷ Decoder s [Int] #

Serialise Int8 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeInt8 → Encoding #

decode ∷ Decoder s Int8 #

encodeList ∷ [Int8] → Encoding #

decodeList ∷ Decoder s [Int8] #

Serialise Int16 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeInt16 → Encoding #

decode ∷ Decoder s Int16 #

encodeList ∷ [Int16] → Encoding #

decodeList ∷ Decoder s [Int16] #

Serialise Int32 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeInt32 → Encoding #

decode ∷ Decoder s Int32 #

encodeList ∷ [Int32] → Encoding #

decodeList ∷ Decoder s [Int32] #

Serialise Int64 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeInt64 → Encoding #

decode ∷ Decoder s Int64 #

encodeList ∷ [Int64] → Encoding #

decodeList ∷ Decoder s [Int64] #

Serialise Integer 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeInteger → Encoding #

decode ∷ Decoder s Integer #

encodeList ∷ [Integer] → Encoding #

decodeList ∷ Decoder s [Integer] #

Serialise Natural 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeNatural → Encoding #

decode ∷ Decoder s Natural #

encodeList ∷ [Natural] → Encoding #

decodeList ∷ Decoder s [Natural] #

Serialise Ordering 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeOrdering → Encoding #

decode ∷ Decoder s Ordering #

encodeList ∷ [Ordering] → Encoding #

decodeList ∷ Decoder s [Ordering] #

Serialise Word 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeWord → Encoding #

decode ∷ Decoder s Word #

encodeList ∷ [Word] → Encoding #

decodeList ∷ Decoder s [Word] #

Serialise Word8 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeWord8 → Encoding #

decode ∷ Decoder s Word8 #

encodeList ∷ [Word8] → Encoding #

decodeList ∷ Decoder s [Word8] #

Serialise Word16 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeWord16 → Encoding #

decode ∷ Decoder s Word16 #

encodeList ∷ [Word16] → Encoding #

decodeList ∷ Decoder s [Word16] #

Serialise Word32 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeWord32 → Encoding #

decode ∷ Decoder s Word32 #

encodeList ∷ [Word32] → Encoding #

decodeList ∷ Decoder s [Word32] #

Serialise Word64 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeWord64 → Encoding #

decode ∷ Decoder s Word64 #

encodeList ∷ [Word64] → Encoding #

decodeList ∷ Decoder s [Word64] #

Serialise RuntimeRep 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeRuntimeRep → Encoding #

decode ∷ Decoder s RuntimeRep #

encodeList ∷ [RuntimeRep] → Encoding #

decodeList ∷ Decoder s [RuntimeRep] #

Serialise VecCount 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeVecCount → Encoding #

decode ∷ Decoder s VecCount #

encodeList ∷ [VecCount] → Encoding #

decodeList ∷ Decoder s [VecCount] #

Serialise VecElem 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeVecElem → Encoding #

decode ∷ Decoder s VecElem #

encodeList ∷ [VecElem] → Encoding #

decodeList ∷ Decoder s [VecElem] #

Serialise SomeTypeRep 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeSomeTypeRep → Encoding #

decode ∷ Decoder s SomeTypeRep #

encodeList ∷ [SomeTypeRep] → Encoding #

decodeList ∷ Decoder s [SomeTypeRep] #

Serialise () 
Instance details

Defined in Codec.Serialise.Class

Methods

encode ∷ () → Encoding #

decode ∷ Decoder s () #

encodeList ∷ [()] → Encoding #

decodeList ∷ Decoder s [()] #

Serialise TyCon 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeTyCon → Encoding #

decode ∷ Decoder s TyCon #

encodeList ∷ [TyCon] → Encoding #

decodeList ∷ Decoder s [TyCon] #

Serialise KindRep 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeKindRep → Encoding #

decode ∷ Decoder s KindRep #

encodeList ∷ [KindRep] → Encoding #

decodeList ∷ Decoder s [KindRep] #

Serialise TypeLitSort 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeTypeLitSort → Encoding #

decode ∷ Decoder s TypeLitSort #

encodeList ∷ [TypeLitSort] → Encoding #

decodeList ∷ Decoder s [TypeLitSort] #

Serialise Void 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeVoid → Encoding #

decode ∷ Decoder s Void #

encodeList ∷ [Void] → Encoding #

decodeList ∷ Decoder s [Void] #

Serialise Version 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeVersion → Encoding #

decode ∷ Decoder s Version #

encodeList ∷ [Version] → Encoding #

decodeList ∷ Decoder s [Version] #

Serialise ExitCode 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeExitCode → Encoding #

decode ∷ Decoder s ExitCode #

encodeList ∷ [ExitCode] → Encoding #

decodeList ∷ Decoder s [ExitCode] #

Serialise All 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeAll → Encoding #

decode ∷ Decoder s All #

encodeList ∷ [All] → Encoding #

decodeList ∷ Decoder s [All] #

Serialise Any 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeAny → Encoding #

decode ∷ Decoder s Any #

encodeList ∷ [Any] → Encoding #

decodeList ∷ Decoder s [Any] #

Serialise CChar 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeCChar → Encoding #

decode ∷ Decoder s CChar #

encodeList ∷ [CChar] → Encoding #

decodeList ∷ Decoder s [CChar] #

Serialise CSChar 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeCSChar → Encoding #

decode ∷ Decoder s CSChar #

encodeList ∷ [CSChar] → Encoding #

decodeList ∷ Decoder s [CSChar] #

Serialise CUChar 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeCUChar → Encoding #

decode ∷ Decoder s CUChar #

encodeList ∷ [CUChar] → Encoding #

decodeList ∷ Decoder s [CUChar] #

Serialise CShort 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeCShort → Encoding #

decode ∷ Decoder s CShort #

encodeList ∷ [CShort] → Encoding #

decodeList ∷ Decoder s [CShort] #

Serialise CUShort 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeCUShort → Encoding #

decode ∷ Decoder s CUShort #

encodeList ∷ [CUShort] → Encoding #

decodeList ∷ Decoder s [CUShort] #

Serialise CInt 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeCInt → Encoding #

decode ∷ Decoder s CInt #

encodeList ∷ [CInt] → Encoding #

decodeList ∷ Decoder s [CInt] #

Serialise CUInt 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeCUInt → Encoding #

decode ∷ Decoder s CUInt #

encodeList ∷ [CUInt] → Encoding #

decodeList ∷ Decoder s [CUInt] #

Serialise CLong 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeCLong → Encoding #

decode ∷ Decoder s CLong #

encodeList ∷ [CLong] → Encoding #

decodeList ∷ Decoder s [CLong] #

Serialise CULong 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeCULong → Encoding #

decode ∷ Decoder s CULong #

encodeList ∷ [CULong] → Encoding #

decodeList ∷ Decoder s [CULong] #

Serialise CLLong 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeCLLong → Encoding #

decode ∷ Decoder s CLLong #

encodeList ∷ [CLLong] → Encoding #

decodeList ∷ Decoder s [CLLong] #

Serialise CULLong 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeCULLong → Encoding #

decode ∷ Decoder s CULLong #

encodeList ∷ [CULLong] → Encoding #

decodeList ∷ Decoder s [CULLong] #

Serialise CFloat 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeCFloat → Encoding #

decode ∷ Decoder s CFloat #

encodeList ∷ [CFloat] → Encoding #

decodeList ∷ Decoder s [CFloat] #

Serialise CDouble 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeCDouble → Encoding #

decode ∷ Decoder s CDouble #

encodeList ∷ [CDouble] → Encoding #

decodeList ∷ Decoder s [CDouble] #

Serialise CPtrdiff 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeCPtrdiff → Encoding #

decode ∷ Decoder s CPtrdiff #

encodeList ∷ [CPtrdiff] → Encoding #

decodeList ∷ Decoder s [CPtrdiff] #

Serialise CSize 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeCSize → Encoding #

decode ∷ Decoder s CSize #

encodeList ∷ [CSize] → Encoding #

decodeList ∷ Decoder s [CSize] #

Serialise CWchar 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeCWchar → Encoding #

decode ∷ Decoder s CWchar #

encodeList ∷ [CWchar] → Encoding #

decodeList ∷ Decoder s [CWchar] #

Serialise CSigAtomic 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeCSigAtomic → Encoding #

decode ∷ Decoder s CSigAtomic #

encodeList ∷ [CSigAtomic] → Encoding #

decodeList ∷ Decoder s [CSigAtomic] #

Serialise CClock 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeCClock → Encoding #

decode ∷ Decoder s CClock #

encodeList ∷ [CClock] → Encoding #

decodeList ∷ Decoder s [CClock] #

Serialise CTime 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeCTime → Encoding #

decode ∷ Decoder s CTime #

encodeList ∷ [CTime] → Encoding #

decodeList ∷ Decoder s [CTime] #

Serialise CUSeconds 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeCUSeconds → Encoding #

decode ∷ Decoder s CUSeconds #

encodeList ∷ [CUSeconds] → Encoding #

decodeList ∷ Decoder s [CUSeconds] #

Serialise CSUSeconds 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeCSUSeconds → Encoding #

decode ∷ Decoder s CSUSeconds #

encodeList ∷ [CSUSeconds] → Encoding #

decodeList ∷ Decoder s [CSUSeconds] #

Serialise CIntPtr 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeCIntPtr → Encoding #

decode ∷ Decoder s CIntPtr #

encodeList ∷ [CIntPtr] → Encoding #

decodeList ∷ Decoder s [CIntPtr] #

Serialise CUIntPtr 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeCUIntPtr → Encoding #

decode ∷ Decoder s CUIntPtr #

encodeList ∷ [CUIntPtr] → Encoding #

decodeList ∷ Decoder s [CUIntPtr] #

Serialise CIntMax 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeCIntMax → Encoding #

decode ∷ Decoder s CIntMax #

encodeList ∷ [CIntMax] → Encoding #

decodeList ∷ Decoder s [CIntMax] #

Serialise CUIntMax 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeCUIntMax → Encoding #

decode ∷ Decoder s CUIntMax #

encodeList ∷ [CUIntMax] → Encoding #

decodeList ∷ Decoder s [CUIntMax] #

Serialise Fingerprint 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeFingerprint → Encoding #

decode ∷ Decoder s Fingerprint #

encodeList ∷ [Fingerprint] → Encoding #

decodeList ∷ Decoder s [Fingerprint] #

Serialise ShortByteString 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeShortByteString → Encoding #

decode ∷ Decoder s ShortByteString #

encodeList ∷ [ShortByteString] → Encoding #

decodeList ∷ Decoder s [ShortByteString] #

Serialise ByteString 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeByteString → Encoding #

decode ∷ Decoder s ByteString #

encodeList ∷ [ByteString] → Encoding #

decodeList ∷ Decoder s [ByteString] #

Serialise ByteString 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeByteString → Encoding #

decode ∷ Decoder s ByteString #

encodeList ∷ [ByteString] → Encoding #

decodeList ∷ Decoder s [ByteString] #

Serialise IntSet 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeIntSet → Encoding #

decode ∷ Decoder s IntSet #

encodeList ∷ [IntSet] → Encoding #

decodeList ∷ Decoder s [IntSet] #

Serialise Text 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeText → Encoding #

decode ∷ Decoder s Text #

encodeList ∷ [Text] → Encoding #

decodeList ∷ Decoder s [Text] #

Serialise Text 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeText → Encoding #

decode ∷ Decoder s Text #

encodeList ∷ [Text] → Encoding #

decodeList ∷ Decoder s [Text] #

Serialise UTCTime 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeUTCTime → Encoding #

decode ∷ Decoder s UTCTime #

encodeList ∷ [UTCTime] → Encoding #

decodeList ∷ Decoder s [UTCTime] #

Serialise Half 
Instance details

Defined in Codec.Serialise.Class

Methods

encode ∷ Half → Encoding #

decode ∷ Decoder s Half #

encodeList ∷ [Half] → Encoding #

decodeList ∷ Decoder s [Half] #

Serialise Term 
Instance details

Defined in Codec.Serialise.Class

Methods

encode ∷ Term → Encoding #

decode ∷ Decoder s Term #

encodeList ∷ [Term] → Encoding #

decodeList ∷ Decoder s [Term] #

Serialise a ⇒ Serialise [a] 
Instance details

Defined in Codec.Serialise.Class

Methods

encode ∷ [a] → Encoding #

decode ∷ Decoder s [a] #

encodeList ∷ [[a]] → Encoding #

decodeList ∷ Decoder s [[a]] #

Serialise a ⇒ Serialise (Maybe a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeMaybe a → Encoding #

decode ∷ Decoder s (Maybe a) #

encodeList ∷ [Maybe a] → Encoding #

decodeList ∷ Decoder s [Maybe a] #

(Serialise a, Integral a) ⇒ Serialise (Ratio a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeRatio a → Encoding #

decode ∷ Decoder s (Ratio a) #

encodeList ∷ [Ratio a] → Encoding #

decodeList ∷ Decoder s [Ratio a] #

Serialise a ⇒ Serialise (Complex a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeComplex a → Encoding #

decode ∷ Decoder s (Complex a) #

encodeList ∷ [Complex a] → Encoding #

decodeList ∷ Decoder s [Complex a] #

Serialise a ⇒ Serialise (Min a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeMin a → Encoding #

decode ∷ Decoder s (Min a) #

encodeList ∷ [Min a] → Encoding #

decodeList ∷ Decoder s [Min a] #

Serialise a ⇒ Serialise (Max a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeMax a → Encoding #

decode ∷ Decoder s (Max a) #

encodeList ∷ [Max a] → Encoding #

decodeList ∷ Decoder s [Max a] #

Serialise a ⇒ Serialise (First a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeFirst a → Encoding #

decode ∷ Decoder s (First a) #

encodeList ∷ [First a] → Encoding #

decodeList ∷ Decoder s [First a] #

Serialise a ⇒ Serialise (Last a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeLast a → Encoding #

decode ∷ Decoder s (Last a) #

encodeList ∷ [Last a] → Encoding #

decodeList ∷ Decoder s [Last a] #

Serialise a ⇒ Serialise (WrappedMonoid a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeWrappedMonoid a → Encoding #

decode ∷ Decoder s (WrappedMonoid a) #

encodeList ∷ [WrappedMonoid a] → Encoding #

decodeList ∷ Decoder s [WrappedMonoid a] #

Serialise a ⇒ Serialise (Option a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeOption a → Encoding #

decode ∷ Decoder s (Option a) #

encodeList ∷ [Option a] → Encoding #

decodeList ∷ Decoder s [Option a] #

Serialise a ⇒ Serialise (ZipList a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeZipList a → Encoding #

decode ∷ Decoder s (ZipList a) #

encodeList ∷ [ZipList a] → Encoding #

decodeList ∷ Decoder s [ZipList a] #

Serialise a ⇒ Serialise (Identity a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeIdentity a → Encoding #

decode ∷ Decoder s (Identity a) #

encodeList ∷ [Identity a] → Encoding #

decodeList ∷ Decoder s [Identity a] #

Serialise a ⇒ Serialise (First a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeFirst a → Encoding #

decode ∷ Decoder s (First a) #

encodeList ∷ [First a] → Encoding #

decodeList ∷ Decoder s [First a] #

Serialise a ⇒ Serialise (Last a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeLast a → Encoding #

decode ∷ Decoder s (Last a) #

encodeList ∷ [Last a] → Encoding #

decodeList ∷ Decoder s [Last a] #

Serialise a ⇒ Serialise (Dual a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeDual a → Encoding #

decode ∷ Decoder s (Dual a) #

encodeList ∷ [Dual a] → Encoding #

decodeList ∷ Decoder s [Dual a] #

Serialise a ⇒ Serialise (Sum a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeSum a → Encoding #

decode ∷ Decoder s (Sum a) #

encodeList ∷ [Sum a] → Encoding #

decodeList ∷ Decoder s [Sum a] #

Serialise a ⇒ Serialise (Product a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeProduct a → Encoding #

decode ∷ Decoder s (Product a) #

encodeList ∷ [Product a] → Encoding #

decodeList ∷ Decoder s [Product a] #

Serialise a ⇒ Serialise (Down a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeDown a → Encoding #

decode ∷ Decoder s (Down a) #

encodeList ∷ [Down a] → Encoding #

decodeList ∷ Decoder s [Down a] #

Serialise a ⇒ Serialise (NonEmpty a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeNonEmpty a → Encoding #

decode ∷ Decoder s (NonEmpty a) #

encodeList ∷ [NonEmpty a] → Encoding #

decodeList ∷ Decoder s [NonEmpty a] #

Serialise a ⇒ Serialise (IntMap a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeIntMap a → Encoding #

decode ∷ Decoder s (IntMap a) #

encodeList ∷ [IntMap a] → Encoding #

decodeList ∷ Decoder s [IntMap a] #

Serialise a ⇒ Serialise (Tree a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeTree a → Encoding #

decode ∷ Decoder s (Tree a) #

encodeList ∷ [Tree a] → Encoding #

decodeList ∷ Decoder s [Tree a] #

Serialise a ⇒ Serialise (Seq a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeSeq a → Encoding #

decode ∷ Decoder s (Seq a) #

encodeList ∷ [Seq a] → Encoding #

decodeList ∷ Decoder s [Seq a] #

(Ord a, Serialise a) ⇒ Serialise (Set a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeSet a → Encoding #

decode ∷ Decoder s (Set a) #

encodeList ∷ [Set a] → Encoding #

decodeList ∷ Decoder s [Set a] #

(Serialise a, Hashable a, Eq a) ⇒ Serialise (HashSet a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encode ∷ HashSet a → Encoding #

decode ∷ Decoder s (HashSet a) #

encodeList ∷ [HashSet a] → Encoding #

decodeList ∷ Decoder s [HashSet a] #

(Serialise a, Unbox a) ⇒ Serialise (Vector a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encode ∷ Vector a → Encoding #

decode ∷ Decoder s (Vector a) #

encodeList ∷ [Vector a] → Encoding #

decodeList ∷ Decoder s [Vector a] #

Serialise a ⇒ Serialise (Maybe a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encode ∷ Maybe a → Encoding #

decode ∷ Decoder s (Maybe a) #

encodeList ∷ [Maybe a] → Encoding #

decodeList ∷ Decoder s [Maybe a] #

Serialise a ⇒ Serialise (Vector a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encode ∷ Vector a → Encoding #

decode ∷ Decoder s (Vector a) #

encodeList ∷ [Vector a] → Encoding #

decodeList ∷ Decoder s [Vector a] #

(Serialise a, Prim a) ⇒ Serialise (Vector a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encode ∷ Vector a → Encoding #

decode ∷ Decoder s (Vector a) #

encodeList ∷ [Vector a] → Encoding #

decodeList ∷ Decoder s [Vector a] #

(Serialise a, Storable a) ⇒ Serialise (Vector a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encode ∷ Vector a → Encoding #

decode ∷ Decoder s (Vector a) #

encodeList ∷ [Vector a] → Encoding #

decodeList ∷ Decoder s [Vector a] #

(Serialise a, Serialise b) ⇒ Serialise (Either a b) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeEither a b → Encoding #

decode ∷ Decoder s (Either a b) #

encodeList ∷ [Either a b] → Encoding #

decodeList ∷ Decoder s [Either a b] #

Typeable a ⇒ Serialise (TypeRep a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeTypeRep a → Encoding #

decode ∷ Decoder s (TypeRep a) #

encodeList ∷ [TypeRep a] → Encoding #

decodeList ∷ Decoder s [TypeRep a] #

(Serialise a, Serialise b) ⇒ Serialise (a, b) 
Instance details

Defined in Codec.Serialise.Class

Methods

encode ∷ (a, b) → Encoding #

decode ∷ Decoder s (a, b) #

encodeList ∷ [(a, b)] → Encoding #

decodeList ∷ Decoder s [(a, b)] #

Serialise (Fixed e) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeFixed e → Encoding #

decode ∷ Decoder s (Fixed e) #

encodeList ∷ [Fixed e] → Encoding #

decodeList ∷ Decoder s [Fixed e] #

Serialise (Proxy a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeProxy a → Encoding #

decode ∷ Decoder s (Proxy a) #

encodeList ∷ [Proxy a] → Encoding #

decodeList ∷ Decoder s [Proxy a] #

(Ord k, Serialise k, Serialise v) ⇒ Serialise (Map k v) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeMap k v → Encoding #

decode ∷ Decoder s (Map k v) #

encodeList ∷ [Map k v] → Encoding #

decodeList ∷ Decoder s [Map k v] #

(Serialise k, Hashable k, Eq k, Serialise v) ⇒ Serialise (HashMap k v) 
Instance details

Defined in Codec.Serialise.Class

Methods

encode ∷ HashMap k v → Encoding #

decode ∷ Decoder s (HashMap k v) #

encodeList ∷ [HashMap k v] → Encoding #

decodeList ∷ Decoder s [HashMap k v] #

(Serialise a, Serialise b) ⇒ Serialise (Either a b) 
Instance details

Defined in Codec.Serialise.Class

Methods

encode ∷ Either a b → Encoding #

decode ∷ Decoder s (Either a b) #

encodeList ∷ [Either a b] → Encoding #

decodeList ∷ Decoder s [Either a b] #

(Serialise a, Serialise b) ⇒ Serialise (These a b) 
Instance details

Defined in Codec.Serialise.Class

Methods

encode ∷ These a b → Encoding #

decode ∷ Decoder s (These a b) #

encodeList ∷ [These a b] → Encoding #

decodeList ∷ Decoder s [These a b] #

(Serialise a, Serialise b) ⇒ Serialise (These a b) 
Instance details

Defined in Codec.Serialise.Class

Methods

encode ∷ These a b → Encoding #

decode ∷ Decoder s (These a b) #

encodeList ∷ [These a b] → Encoding #

decodeList ∷ Decoder s [These a b] #

(Serialise a, Serialise b) ⇒ Serialise (Pair a b) 
Instance details

Defined in Codec.Serialise.Class

Methods

encode ∷ Pair a b → Encoding #

decode ∷ Decoder s (Pair a b) #

encodeList ∷ [Pair a b] → Encoding #

decodeList ∷ Decoder s [Pair a b] #

(Serialise a, Serialise b, Serialise c) ⇒ Serialise (a, b, c) 
Instance details

Defined in Codec.Serialise.Class

Methods

encode ∷ (a, b, c) → Encoding #

decode ∷ Decoder s (a, b, c) #

encodeList ∷ [(a, b, c)] → Encoding #

decodeList ∷ Decoder s [(a, b, c)] #

Serialise a ⇒ Serialise (Const a b) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeConst a b → Encoding #

decode ∷ Decoder s (Const a b) #

encodeList ∷ [Const a b] → Encoding #

decodeList ∷ Decoder s [Const a b] #

Serialise (f a) ⇒ Serialise (Alt f a) 
Instance details

Defined in Codec.Serialise.Class

Methods

encodeAlt f a → Encoding #

decode ∷ Decoder s (Alt f a) #

encodeList ∷ [Alt f a] → Encoding #

decodeList ∷ Decoder s [Alt f a] #

(Serialise a, Serialise b, Serialise c, Serialise d) ⇒ Serialise (a, b, c, d) 
Instance details

Defined in Codec.Serialise.Class

Methods

encode ∷ (a, b, c, d) → Encoding #

decode ∷ Decoder s (a, b, c, d) #

encodeList ∷ [(a, b, c, d)] → Encoding #

decodeList ∷ Decoder s [(a, b, c, d)] #

(Serialise a, Serialise b, Serialise c, Serialise d, Serialise e) ⇒ Serialise (a, b, c, d, e) 
Instance details

Defined in Codec.Serialise.Class

Methods

encode ∷ (a, b, c, d, e) → Encoding #

decode ∷ Decoder s (a, b, c, d, e) #

encodeList ∷ [(a, b, c, d, e)] → Encoding #

decodeList ∷ Decoder s [(a, b, c, d, e)] #

(Serialise a, Serialise b, Serialise c, Serialise d, Serialise e, Serialise f) ⇒ Serialise (a, b, c, d, e, f) 
Instance details

Defined in Codec.Serialise.Class

Methods

encode ∷ (a, b, c, d, e, f) → Encoding #

decode ∷ Decoder s (a, b, c, d, e, f) #

encodeList ∷ [(a, b, c, d, e, f)] → Encoding #

decodeList ∷ Decoder s [(a, b, c, d, e, f)] #

(Serialise a, Serialise b, Serialise c, Serialise d, Serialise e, Serialise f, Serialise g) ⇒ Serialise (a, b, c, d, e, f, g) 
Instance details

Defined in Codec.Serialise.Class

Methods

encode ∷ (a, b, c, d, e, f, g) → Encoding #

decode ∷ Decoder s (a, b, c, d, e, f, g) #

encodeList ∷ [(a, b, c, d, e, f, g)] → Encoding #

decodeList ∷ Decoder s [(a, b, c, d, e, f, g)] #

(Serialise a, Serialise b, Serialise c, Serialise d, Serialise e, Serialise f, Serialise g, Serialise h) ⇒ Serialise (a, b, c, d, e, f, g, h) 
Instance details

Defined in Codec.Serialise.Class

Methods

encode ∷ (a, b, c, d, e, f, g, h) → Encoding #

decode ∷ Decoder s (a, b, c, d, e, f, g, h) #

encodeList ∷ [(a, b, c, d, e, f, g, h)] → Encoding #

decodeList ∷ Decoder s [(a, b, c, d, e, f, g, h)] #

(Serialise a, Serialise b, Serialise c, Serialise d, Serialise e, Serialise f, Serialise g, Serialise h, Serialise i) ⇒ Serialise (a, b, c, d, e, f, g, h, i) 
Instance details

Defined in Codec.Serialise.Class

Methods

encode ∷ (a, b, c, d, e, f, g, h, i) → Encoding #

decode ∷ Decoder s (a, b, c, d, e, f, g, h, i) #

encodeList ∷ [(a, b, c, d, e, f, g, h, i)] → Encoding #

decodeList ∷ Decoder s [(a, b, c, d, e, f, g, h, i)] #

prop_serialise ∷ (Serialise a, Eq a, Show a) ⇒ a → Property Source #

prop_serialise_validSerialise a ⇒ a → Property Source #

prop_serialise_roundtrip ∷ (Serialise a, Eq a, Show a) ⇒ a → Property Source #