ouroboros-network-testing-0.1.0.1: Common modules used for testing in ouroboros-network and ouroboros-consensus
Safe Haskell None
Language Haskell2010

Ouroboros.Network.Testing.Serialise

Contents

Synopsis

Class

class Serialise a where Source #

Types that are instances of the Serialise class allow values to be quickly encoded or decoded directly to a CBOR representation, for object transmission or storage.

Since: serialise-0.2.0.0

Minimal complete definition

Nothing

Methods

encode :: a -> Encoding Source #

Definition for encoding a given type into a binary representation, using the Encoding Monoid .

Since: serialise-0.2.0.0

decode :: Decoder s a Source #

Definition of a given Decoder for a type.

Since: serialise-0.2.0.0

encodeList :: [a] -> Encoding Source #

Utility to support specialised encoding for some list type - used for Char / String instances in this package.

Since: serialise-0.2.0.0

decodeList :: Decoder s [a] Source #

Utility to support specialised decoding for some list type - used for Char / String instances in this package.

Since: serialise-0.2.0.0

Instances

Instances details
Serialise Bool

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise Char

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise Double

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise Float

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise Int

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise Int8

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise Int16

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise Int32

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise Int64

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise Integer

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise Natural

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise Ordering

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise Word

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise Word8

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise Word16

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise Word32

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise Word64

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise RuntimeRep

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise VecCount

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise VecElem

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise SomeTypeRep

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise ()

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise TyCon

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise KindRep

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise TypeLitSort

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise Version

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise ByteString

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise ByteString

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise UTCTime

UTCTime is encoded using the extended time format which is currently in Internet Draft state, https://tools.ietf.org/html/draft-bormann-cbor-time-tag-00 .

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise Text

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise Text

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise Void

Since: serialise-0.2.4.0

Instance details

Defined in Codec.Serialise.Class

Serialise ExitCode

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise All

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise Any

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise CChar

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise CSChar

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise CUChar

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise CShort

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise CUShort

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise CInt

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise CUInt

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise CLong

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise CULong

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise CLLong

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise CULLong

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise CFloat

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise CDouble

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise CPtrdiff

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise CSize

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise CWchar

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise CSigAtomic

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise CClock

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise CTime

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise CUSeconds

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise CSUSeconds

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise CIntPtr

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise CUIntPtr

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise CIntMax

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise CUIntMax

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise Fingerprint

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise ShortByteString

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise Term

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise IntSet

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise Half

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise a => Serialise [a]

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise a => Serialise ( Maybe a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

( Serialise a, Integral a) => Serialise ( Ratio a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise a => Serialise ( Complex a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise a => Serialise ( Min a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise a => Serialise ( Max a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise a => Serialise ( First a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise a => Serialise ( Last a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise a => Serialise ( WrappedMonoid a)
Instance details

Defined in Codec.Serialise.Class

Serialise a => Serialise ( Option a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise a => Serialise ( ZipList a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise a => Serialise ( Identity a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise a => Serialise ( First a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise a => Serialise ( Last a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise a => Serialise ( Dual a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise a => Serialise ( Sum a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise a => Serialise ( Product a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise a => Serialise ( Down a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise a => Serialise ( NonEmpty a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise a => Serialise ( IntMap a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise a => Serialise ( Tree a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise a => Serialise ( Seq a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

( Ord a, Serialise a) => Serialise ( Set a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise a => Serialise ( Maybe a)

Since: serialise-0.2.4.0

Instance details

Defined in Codec.Serialise.Class

( Serialise a, Hashable a, Eq a) => Serialise ( HashSet a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

( Serialise a, Unbox a) => Serialise ( Vector a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

( Serialise a, Storable a) => Serialise ( Vector a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

( Serialise a, Prim a) => Serialise ( Vector a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise a => Serialise ( Vector a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

( Serialise a, Serialise b) => Serialise ( Either a b)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Typeable a => Serialise ( TypeRep a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

( Serialise a, Serialise b) => Serialise (a, b)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

( Ord k, Serialise k, Serialise v) => Serialise ( Map k v)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

( Serialise k, Hashable k, Eq k, Serialise v) => Serialise ( HashMap k v)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise ( Fixed e)

Values are serialised in units of least precision represented as Integer .

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise ( Proxy a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

( Serialise a, Serialise b) => Serialise ( These a b)

Since: serialise-0.2.4.0

Instance details

Defined in Codec.Serialise.Class

( Serialise a, Serialise b) => Serialise ( Pair a b)

Since: serialise-0.2.4.0

Instance details

Defined in Codec.Serialise.Class

( Serialise a, Serialise b) => Serialise ( These a b)

Since: serialise-0.2.4.0

Instance details

Defined in Codec.Serialise.Class

( Serialise a, Serialise b) => Serialise ( Either a b)

Since: serialise-0.2.4.0

Instance details

Defined in Codec.Serialise.Class

( Serialise a, Serialise b, Serialise c) => Serialise (a, b, c)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise a => Serialise ( Const a b)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Serialise (f a) => Serialise ( Alt f a)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

( Serialise a, Serialise b, Serialise c, Serialise d) => Serialise (a, b, c, d)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

( Serialise a, Serialise b, Serialise c, Serialise d, Serialise e) => Serialise (a, b, c, d, e)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Methods

encode :: (a, b, c, d, e) -> Encoding Source #

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

encodeList :: [(a, b, c, d, e)] -> Encoding Source #

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

( Serialise a, Serialise b, Serialise c, Serialise d, Serialise e, Serialise f) => Serialise (a, b, c, d, e, f)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Methods

encode :: (a, b, c, d, e, f) -> Encoding Source #

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

encodeList :: [(a, b, c, d, e, f)] -> Encoding Source #

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

( Serialise a, Serialise b, Serialise c, Serialise d, Serialise e, Serialise f, Serialise g) => Serialise (a, b, c, d, e, f, g)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Methods

encode :: (a, b, c, d, e, f, g) -> Encoding Source #

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

encodeList :: [(a, b, c, d, e, f, g)] -> Encoding Source #

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

( 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)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Methods

encode :: (a, b, c, d, e, f, g, h) -> Encoding Source #

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

encodeList :: [(a, b, c, d, e, f, g, h)] -> Encoding Source #

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

( 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)

Since: serialise-0.2.0.0

Instance details

Defined in Codec.Serialise.Class

Methods

encode :: (a, b, c, d, e, f, g, h, i) -> Encoding Source #

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

encodeList :: [(a, b, c, d, e, f, g, h, i)] -> Encoding Source #

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