-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/

-- | Sharing code for serialization between binary and cereal
--   
--   Sharing code for serialization between binary and cereal.
@package bytes
@version 0.17.4

-- | This module generalizes the binary Get and
--   cereal Get monads in an ad hoc fashion to permit code
--   to be written that is compatible across them.
--   
--   Moreover, this class permits code to be written to be portable over
--   various monad transformers applied to these as base monads.
module Data.Bytes.Get
class (forall a b. Coercible a b => Coercible m a m b, Integral Remaining m, MonadFail m, Applicative m) => MonadGet (m :: Type -> Type) where {
    
    -- | An <a>Integral</a> number type used for unchecked skips and counting.
    type Remaining (m :: Type -> Type);
    
    -- | The underlying ByteString type used by this instance
    type Bytes (m :: Type -> Type);
}

-- | Skip ahead n bytes. Fails if fewer than n bytes are
--   available.
skip :: MonadGet m => Int -> m ()
($dmskip) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadGet m, MonadTrans t, MonadGet n, m ~ t n) => Int -> m ()

-- | If at least n bytes are available return at least that much
--   of the current input. Otherwise fail.
ensure :: MonadGet m => Int -> m ByteString
($dmensure) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadGet m, MonadTrans t, MonadGet n, m ~ t n) => Int -> m ByteString

-- | Run ga, but return without consuming its input. Fails if
--   ga fails.
lookAhead :: MonadGet m => m a -> m a

-- | Like lookAhead, but consume the input if gma returns
--   'Just _'. Fails if gma fails.
lookAheadM :: MonadGet m => m (Maybe a) -> m (Maybe a)

-- | Like lookAhead, but consume the input if gea returns
--   'Right _'. Fails if gea fails.
lookAheadE :: MonadGet m => m (Either a b) -> m (Either a b)

-- | Pull n bytes from the input, as a strict ByteString.
getBytes :: MonadGet m => Int -> m ByteString
($dmgetBytes) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadGet m, MonadTrans t, MonadGet n, m ~ t n) => Int -> m ByteString

-- | Get the number of remaining unparsed bytes. Useful for checking
--   whether all input has been consumed. Note that this forces the rest of
--   the input.
remaining :: MonadGet m => m (Remaining m)
($dmremaining) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadGet m, MonadTrans t, MonadGet n, m ~ t n, Remaining m ~ Remaining n) => m (Remaining m)

-- | Test whether all input has been consumed, i.e. there are no remaining
--   unparsed bytes.
isEmpty :: MonadGet m => m Bool
($dmisEmpty) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadGet m, MonadTrans t, MonadGet n, m ~ t n) => m Bool

-- | Read a Word8 from the monad state
getWord8 :: MonadGet m => m Word8
($dmgetWord8) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadGet m, MonadTrans t, MonadGet n, m ~ t n) => m Word8

-- | An efficient get method for strict ByteStrings. Fails if fewer
--   than n bytes are left in the input.
getByteString :: MonadGet m => Int -> m ByteString
($dmgetByteString) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadGet m, MonadTrans t, MonadGet n, m ~ t n) => Int -> m ByteString

-- | An efficient get method for lazy ByteStrings. Does not fail if
--   fewer than n bytes are left in the input.
getLazyByteString :: MonadGet m => Int64 -> m ByteString
($dmgetLazyByteString) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadGet m, MonadTrans t, MonadGet n, m ~ t n) => Int64 -> m ByteString

-- | Read a Word16 in big endian format
getWord16be :: MonadGet m => m Word16
($dmgetWord16be) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadGet m, MonadTrans t, MonadGet n, m ~ t n) => m Word16

-- | Read a Word16 in little endian format
getWord16le :: MonadGet m => m Word16
($dmgetWord16le) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadGet m, MonadTrans t, MonadGet n, m ~ t n) => m Word16

-- | O(1). Read a 2 byte Word16 in native host order and host
--   endianness.
getWord16host :: MonadGet m => m Word16
($dmgetWord16host) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadGet m, MonadTrans t, MonadGet n, m ~ t n) => m Word16

-- | Read a Word32 in big endian format
getWord32be :: MonadGet m => m Word32
($dmgetWord32be) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadGet m, MonadTrans t, MonadGet n, m ~ t n) => m Word32

-- | Read a Word32 in little endian format
getWord32le :: MonadGet m => m Word32
($dmgetWord32le) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadGet m, MonadTrans t, MonadGet n, m ~ t n) => m Word32

-- | O(1). Read a Word32 in native host order and host
--   endianness.
getWord32host :: MonadGet m => m Word32
($dmgetWord32host) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadGet m, MonadTrans t, MonadGet n, m ~ t n) => m Word32

-- | Read a Word64 in big endian format
getWord64be :: MonadGet m => m Word64
($dmgetWord64be) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadGet m, MonadTrans t, MonadGet n, m ~ t n) => m Word64

-- | Read a Word64 in little endian format
getWord64le :: MonadGet m => m Word64
($dmgetWord64le) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadGet m, MonadTrans t, MonadGet n, m ~ t n) => m Word64

-- | O(1). Read a Word64 in native host order and host
--   endianness.
getWord64host :: MonadGet m => m Word64
($dmgetWord64host) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadGet m, MonadTrans t, MonadGet n, m ~ t n) => m Word64

-- | O(1). Read a single native machine word. The word is read in
--   host order, host endian form, for the machine you're on. On a 64 bit
--   machine the Word is an 8 byte value, on a 32 bit machine, 4 bytes.
getWordhost :: MonadGet m => m Word
($dmgetWordhost) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadGet m, MonadTrans t, MonadGet n, m ~ t n) => m Word

-- | Get something from a lazy ByteString using runGet.
runGetL :: Get a -> ByteString -> a

-- | Get something from a strict ByteString using runGet.
runGetS :: Get a -> ByteString -> Either String a
instance Data.Bytes.Get.MonadGet m => Data.Bytes.Get.MonadGet (Control.Monad.Trans.Except.ExceptT e m)
instance Data.Bytes.Get.MonadGet Data.Serialize.Get.Get
instance Data.Bytes.Get.MonadGet Data.Binary.Get.Internal.Get
instance (Data.Bytes.Get.MonadGet m, GHC.Internal.Base.Monoid w) => Data.Bytes.Get.MonadGet (Control.Monad.Trans.RWS.Lazy.RWST r w s m)
instance (Data.Bytes.Get.MonadGet m, GHC.Internal.Base.Monoid w) => Data.Bytes.Get.MonadGet (Control.Monad.Trans.RWS.Strict.RWST r w s m)
instance Data.Bytes.Get.MonadGet m => Data.Bytes.Get.MonadGet (Control.Monad.Trans.Reader.ReaderT e m)
instance Data.Bytes.Get.MonadGet m => Data.Bytes.Get.MonadGet (Control.Monad.Trans.State.Strict.StateT s m)
instance Data.Bytes.Get.MonadGet m => Data.Bytes.Get.MonadGet (Control.Monad.Trans.State.Lazy.StateT s m)
instance (Data.Bytes.Get.MonadGet m, GHC.Internal.Base.Monoid w) => Data.Bytes.Get.MonadGet (Control.Monad.Trans.Writer.Strict.WriterT w m)
instance (Data.Bytes.Get.MonadGet m, GHC.Internal.Base.Monoid w) => Data.Bytes.Get.MonadGet (Control.Monad.Trans.Writer.Lazy.WriterT w m)

-- | This module generalizes the binary PutM and
--   cereal PutM monads in an ad hoc fashion to permit code
--   to be written that is compatible across them.
--   
--   Moreover, this class permits code to be written to be portable over
--   various monad transformers applied to these as base monads.
module Data.Bytes.Put
class (Applicative m, Monad m) => MonadPut (m :: Type -> Type)

-- | Efficiently write a byte into the output buffer
putWord8 :: MonadPut m => Word8 -> m ()
($dmputWord8) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadPut m, m ~ t n, MonadTrans t, MonadPut n) => Word8 -> m ()

-- | An efficient primitive to write a strict ByteString into the
--   output buffer.
--   
--   In binary this flushes the current buffer, and writes the
--   argument into a new chunk.
putByteString :: MonadPut m => ByteString -> m ()
($dmputByteString) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadPut m, m ~ t n, MonadTrans t, MonadPut n) => ByteString -> m ()

-- | Write a lazy ByteString efficiently.
--   
--   With binary, this simply appends the chunks to the output
--   buffer
putLazyByteString :: MonadPut m => ByteString -> m ()
($dmputLazyByteString) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadPut m, m ~ t n, MonadTrans t, MonadPut n) => ByteString -> m ()

-- | Pop the ByteString we have constructed so far, if any, yielding
--   a new chunk in the result ByteString.
--   
--   If we're building a strict ByteString with cereal then
--   this does nothing.
flush :: MonadPut m => m ()
($dmflush) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadPut m, m ~ t n, MonadTrans t, MonadPut n) => m ()

-- | Write a Word16 in little endian format
putWord16le :: MonadPut m => Word16 -> m ()
($dmputWord16le) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadPut m, m ~ t n, MonadTrans t, MonadPut n) => Word16 -> m ()

-- | Write a Word16 in big endian format
putWord16be :: MonadPut m => Word16 -> m ()
($dmputWord16be) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadPut m, m ~ t n, MonadTrans t, MonadPut n) => Word16 -> m ()

-- | O(1). Write a Word16 in native host order and host
--   endianness. For portability issues see putWordhost.
putWord16host :: MonadPut m => Word16 -> m ()
($dmputWord16host) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadPut m, m ~ t n, MonadTrans t, MonadPut n) => Word16 -> m ()

-- | Write a Word32 in little endian format
putWord32le :: MonadPut m => Word32 -> m ()
($dmputWord32le) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadPut m, m ~ t n, MonadTrans t, MonadPut n) => Word32 -> m ()

-- | Write a Word32 in big endian format
putWord32be :: MonadPut m => Word32 -> m ()
($dmputWord32be) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadPut m, m ~ t n, MonadTrans t, MonadPut n) => Word32 -> m ()

-- | O(1). Write a Word32 in native host order and host
--   endianness. For portability issues see putWordhost.
putWord32host :: MonadPut m => Word32 -> m ()
($dmputWord32host) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadPut m, m ~ t n, MonadTrans t, MonadPut n) => Word32 -> m ()

-- | Write a Word64 in little endian format
putWord64le :: MonadPut m => Word64 -> m ()
($dmputWord64le) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadPut m, m ~ t n, MonadTrans t, MonadPut n) => Word64 -> m ()

-- | Write a Word64 in big endian format
putWord64be :: MonadPut m => Word64 -> m ()
($dmputWord64be) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadPut m, m ~ t n, MonadTrans t, MonadPut n) => Word64 -> m ()

-- | O(1). Write a Word64 in native host order and host
--   endianness. For portability issues see putWordhost.
putWord64host :: MonadPut m => Word64 -> m ()
($dmputWord64host) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadPut m, m ~ t n, MonadTrans t, MonadPut n) => Word64 -> m ()

-- | O(1). Write a single native machine word. The word is written
--   in host order, host endian form, for the machine you're on. On a 64
--   bit machine the Word is an 8 byte value, on a 32 bit machine, 4 bytes.
--   Values written this way are not portable to different endian or word
--   sized machines, without conversion.
putWordhost :: MonadPut m => Word -> m ()
($dmputWordhost) :: forall (t :: (Type -> Type) -> Type -> Type) (n :: Type -> Type). (MonadPut m, m ~ t n, MonadTrans t, MonadPut n) => Word -> m ()

-- | Put a value into a lazy ByteString using runPut.
runPutL :: Put -> ByteString

-- | Put a value into a strict ByteString using runPut.
runPutS :: Put -> ByteString
instance Data.Bytes.Put.MonadPut m => Data.Bytes.Put.MonadPut (Control.Monad.Trans.Except.ExceptT e m)
instance Data.Bytes.Put.MonadPut Data.Serialize.Put.PutM
instance Data.Bytes.Put.MonadPut Data.Binary.Put.PutM
instance (Data.Bytes.Put.MonadPut m, GHC.Internal.Base.Monoid w) => Data.Bytes.Put.MonadPut (Control.Monad.Trans.RWS.Strict.RWST r w s m)
instance (Data.Bytes.Put.MonadPut m, GHC.Internal.Base.Monoid w) => Data.Bytes.Put.MonadPut (Control.Monad.Trans.RWS.Lazy.RWST r w s m)
instance Data.Bytes.Put.MonadPut m => Data.Bytes.Put.MonadPut (Control.Monad.Trans.Reader.ReaderT e m)
instance Data.Bytes.Put.MonadPut m => Data.Bytes.Put.MonadPut (Control.Monad.Trans.State.Strict.StateT s m)
instance Data.Bytes.Put.MonadPut m => Data.Bytes.Put.MonadPut (Control.Monad.Trans.State.Lazy.StateT s m)
instance (Data.Bytes.Put.MonadPut m, GHC.Internal.Base.Monoid w) => Data.Bytes.Put.MonadPut (Control.Monad.Trans.Writer.Strict.WriterT w m)
instance (Data.Bytes.Put.MonadPut m, GHC.Internal.Base.Monoid w) => Data.Bytes.Put.MonadPut (Control.Monad.Trans.Writer.Lazy.WriterT w m)

-- | When one wants to think of an Int as a dumb bitstring,
--   converting it to a Word avoids pesky complications with respect
--   to sign extension.
module Data.Bytes.Signed
type family Unsigned i
unsigned :: (Integral i, Num (Unsigned i)) => i -> Unsigned i
type family Signed i
signed :: (Integral i, Num (Signed i)) => i -> Signed i

-- | This module provides a VarInt wrapper with a Serial
--   instance that generates base-128 variable-width ints. Values are
--   encoded 7 bits at a time, with the most significant being a
--   continuation bit. Thus, the numbers from 0 to 127 require only a
--   single byte to encode, those from 128 to 16383 require two bytes, etc.
--   
--   This format is taken from Google's Protocol Buffers, which
--   provides a bit more verbiage on the encoding:
--   https://developers.google.com/protocol-buffers/docs/encoding#varints.
module Data.Bytes.VarInt
newtype VarInt n
VarInt :: n -> VarInt n
[unVarInt] :: VarInt n -> n
instance GHC.Internal.Bits.Bits n => GHC.Internal.Bits.Bits (Data.Bytes.VarInt.VarInt n)
instance GHC.Internal.Enum.Bounded n => GHC.Internal.Enum.Bounded (Data.Bytes.VarInt.VarInt n)
instance GHC.Internal.Enum.Enum n => GHC.Internal.Enum.Enum (Data.Bytes.VarInt.VarInt n)
instance GHC.Classes.Eq n => GHC.Classes.Eq (Data.Bytes.VarInt.VarInt n)
instance GHC.Internal.Real.Integral n => GHC.Internal.Real.Integral (Data.Bytes.VarInt.VarInt n)
instance GHC.Internal.Num.Num n => GHC.Internal.Num.Num (Data.Bytes.VarInt.VarInt n)
instance GHC.Classes.Ord n => GHC.Classes.Ord (Data.Bytes.VarInt.VarInt n)
instance GHC.Internal.Real.Real n => GHC.Internal.Real.Real (Data.Bytes.VarInt.VarInt n)
instance GHC.Internal.Show.Show n => GHC.Internal.Show.Show (Data.Bytes.VarInt.VarInt n)

-- | This module contains two main classes, each providing methods to
--   serialize and deserialize types. Serial is the primary class,
--   to be used for the canonical way to serialize a specific type.
--   SerialEndian is used to provide endian-specific methods for
--   serializing a type.
module Data.Bytes.Serial

-- | Methods to serialize and deserialize type a to a binary
--   representation
--   
--   Instances provided here for fixed-with Integers and Words are big
--   endian. Instances for strict and lazy bytestrings store also the
--   length of bytestring big endian. Instances for Word and Int are host
--   endian as they are machine-specific types.
class Serial a
serialize :: (Serial a, MonadPut m) => a -> m ()
($dmserialize) :: (Serial a, MonadPut m, GSerial (Rep a), Generic a) => a -> m ()
deserialize :: (Serial a, MonadGet m) => m a
($dmdeserialize) :: (Serial a, MonadGet m, GSerial (Rep a), Generic a) => m a

-- | Methods to serialize and deserialize type a to a big and
--   little endian binary representations. Methods suffixed with "host" are
--   automatically defined to use equal the methods corresponding to the
--   current machine's native endianness, but they can be overridden.
class SerialEndian a
serializeBE :: (SerialEndian a, MonadPut m) => a -> m ()
($dmserializeBE) :: (SerialEndian a, MonadPut m, GSerialEndian (Rep a), Generic a) => a -> m ()
deserializeBE :: (SerialEndian a, MonadGet m) => m a
($dmdeserializeBE) :: (SerialEndian a, MonadGet m, GSerialEndian (Rep a), Generic a) => m a
serializeLE :: (SerialEndian a, MonadPut m) => a -> m ()
($dmserializeLE) :: (SerialEndian a, MonadPut m, GSerialEndian (Rep a), Generic a) => a -> m ()
deserializeLE :: (SerialEndian a, MonadGet m) => m a
($dmdeserializeLE) :: (SerialEndian a, MonadGet m, GSerialEndian (Rep a), Generic a) => m a
serializeHost :: (SerialEndian a, MonadPut m) => a -> m ()
deserializeHost :: (SerialEndian a, MonadGet m) => m a
class Serial1 (f :: Type -> Type)
serializeWith :: (Serial1 f, MonadPut m) => (a -> m ()) -> f a -> m ()
($dmserializeWith) :: (Serial1 f, MonadPut m, GSerial1 (Rep1 f), Generic1 f) => (a -> m ()) -> f a -> m ()
deserializeWith :: (Serial1 f, MonadGet m) => m a -> m (f a)
($dmdeserializeWith) :: (Serial1 f, MonadGet m, GSerial1 (Rep1 f), Generic1 f) => m a -> m (f a)
serialize1 :: (MonadPut m, Serial1 f, Serial a) => f a -> m ()
deserialize1 :: (MonadGet m, Serial1 f, Serial a) => m (f a)
class Serial2 (f :: Type -> Type -> Type)
serializeWith2 :: (Serial2 f, MonadPut m) => (a -> m ()) -> (b -> m ()) -> f a b -> m ()
deserializeWith2 :: (Serial2 f, MonadGet m) => m a -> m b -> m (f a b)
serialize2 :: (MonadPut m, Serial2 f, Serial a, Serial b) => f a b -> m ()
deserialize2 :: (MonadGet m, Serial2 f, Serial a, Serial b) => m (f a b)

-- | serialize any Storable in a host-specific format.
store :: (MonadPut m, Storable a) => a -> m ()

-- | deserialize any Storable in a host-specific format.
restore :: (MonadGet m, Storable a) => m a

-- | Used internally to provide generic serialization
class GSerial (f :: Type -> Type)
gserialize :: (GSerial f, MonadPut m) => f a -> m ()
gdeserialize :: (GSerial f, MonadGet m) => m (f a)

-- | Used internally to provide generic big-endian serialization
class GSerialEndian (f :: Type -> Type)
gserializeBE :: (GSerialEndian f, MonadPut m) => f a -> m ()
($dmgserializeBE) :: (GSerialEndian f, MonadPut m, GSerial f) => f a -> m ()
gdeserializeBE :: (GSerialEndian f, MonadGet m) => m (f a)
($dmgdeserializeBE) :: (GSerialEndian f, MonadGet m, GSerial f) => m (f a)
gserializeLE :: (GSerialEndian f, MonadPut m) => f a -> m ()
($dmgserializeLE) :: (GSerialEndian f, MonadPut m, GSerial f) => f a -> m ()
gdeserializeLE :: (GSerialEndian f, MonadGet m) => m (f a)
($dmgdeserializeLE) :: (GSerialEndian f, MonadGet m, GSerial f) => m (f a)

-- | Used internally to provide generic serialization
class GSerial1 (f :: Type -> Type)
gserializeWith :: (GSerial1 f, MonadPut m) => (a -> m ()) -> f a -> m ()
gdeserializeWith :: (GSerial1 f, MonadGet m) => m a -> m (f a)
instance (Data.Bytes.Serial.GSerial1 f, Data.Bytes.Serial.GSerial1 g) => Data.Bytes.Serial.GSerial1 (f GHC.Internal.Generics.:*: g)
instance (Data.Bytes.Serial.GSerial1 f, Data.Bytes.Serial.GSerial1 g) => Data.Bytes.Serial.GSerial1 (f GHC.Internal.Generics.:+: g)
instance (Data.Bytes.Serial.Serial1 f, Data.Bytes.Serial.GSerial1 g) => Data.Bytes.Serial.GSerial1 (f GHC.Internal.Generics.:.: g)
instance Data.Bytes.Serial.Serial a => Data.Bytes.Serial.GSerial1 (GHC.Internal.Generics.K1 i a)
instance Data.Bytes.Serial.GSerial1 f => Data.Bytes.Serial.GSerial1 (GHC.Internal.Generics.M1 i c f)
instance Data.Bytes.Serial.GSerial1 GHC.Internal.Generics.Par1
instance Data.Bytes.Serial.Serial1 f => Data.Bytes.Serial.GSerial1 (GHC.Internal.Generics.Rec1 f)
instance Data.Bytes.Serial.GSerial1 GHC.Internal.Generics.U1
instance Data.Bytes.Serial.GSerial1 GHC.Internal.Generics.V1
instance Data.Bytes.Serial.SerialEndian a => Data.Bytes.Serial.GSerialEndian (GHC.Internal.Generics.K1 i a)
instance (Data.Bytes.Serial.GSerial f, Data.Bytes.Serial.GSerial g) => Data.Bytes.Serial.GSerial (f GHC.Internal.Generics.:*: g)
instance (Data.Bytes.Serial.GSerial f, Data.Bytes.Serial.GSerial g) => Data.Bytes.Serial.GSerial (f GHC.Internal.Generics.:+: g)
instance Data.Bytes.Serial.Serial a => Data.Bytes.Serial.GSerial (GHC.Internal.Generics.K1 i a)
instance Data.Bytes.Serial.GSerial f => Data.Bytes.Serial.GSerial (GHC.Internal.Generics.M1 i c f)
instance Data.Bytes.Serial.GSerial GHC.Internal.Generics.U1
instance Data.Bytes.Serial.GSerial GHC.Internal.Generics.V1
instance Data.Bytes.Serial.Serial a => Data.Bytes.Serial.Serial1 (GHC.Internal.Data.Either.Either a)
instance (Data.Hashable.Class.Hashable k, GHC.Classes.Eq k, Data.Bytes.Serial.Serial k) => Data.Bytes.Serial.Serial1 (Data.HashMap.Internal.HashMap k)
instance Data.Bytes.Serial.Serial1 Data.IntMap.Internal.IntMap
instance Data.Bytes.Serial.Serial1 []
instance (GHC.Classes.Ord k, Data.Bytes.Serial.Serial k) => Data.Bytes.Serial.Serial1 (Data.Map.Internal.Map k)
instance Data.Bytes.Serial.Serial1 GHC.Internal.Maybe.Maybe
instance Data.Bytes.Serial.Serial1 GHC.Internal.Base.NonEmpty
instance Data.Bytes.Serial.Serial1 Data.Sequence.Internal.Seq
instance Data.Bytes.Serial.Serial a => Data.Bytes.Serial.Serial1 ((,) a)
instance (Data.Bytes.Serial.Serial a, Data.Bytes.Serial.Serial b) => Data.Bytes.Serial.Serial1 ((,,) a b)
instance (Data.Bytes.Serial.Serial a, Data.Bytes.Serial.Serial b, Data.Bytes.Serial.Serial c) => Data.Bytes.Serial.Serial1 ((,,,) a b c)
instance (Data.Bytes.Serial.Serial a, Data.Bytes.Serial.Serial b, Data.Bytes.Serial.Serial c, Data.Bytes.Serial.Serial d) => Data.Bytes.Serial.Serial1 ((,,,,) a b c d)
instance Data.Bytes.Serial.Serial2 GHC.Internal.Data.Either.Either
instance Data.Bytes.Serial.Serial2 (,)
instance Data.Bytes.Serial.Serial a => Data.Bytes.Serial.Serial2 ((,,) a)
instance (Data.Bytes.Serial.Serial a, Data.Bytes.Serial.Serial b) => Data.Bytes.Serial.Serial2 ((,,,) a b)
instance (Data.Bytes.Serial.Serial a, Data.Bytes.Serial.Serial b, Data.Bytes.Serial.Serial c) => Data.Bytes.Serial.Serial2 ((,,,,) a b c)
instance Data.Bytes.Serial.SerialEndian GHC.Types.Char
instance Data.Bytes.Serial.SerialEndian GHC.Types.Double
instance Data.Bytes.Serial.SerialEndian GHC.Types.Float
instance Data.Bytes.Serial.SerialEndian GHC.Internal.Int.Int16
instance Data.Bytes.Serial.SerialEndian GHC.Internal.Int.Int32
instance Data.Bytes.Serial.SerialEndian GHC.Internal.Int.Int64
instance Data.Bytes.Serial.SerialEndian GHC.Internal.Word.Word16
instance Data.Bytes.Serial.SerialEndian GHC.Internal.Word.Word32
instance Data.Bytes.Serial.SerialEndian GHC.Internal.Word.Word64
instance Data.Bytes.Serial.Serial Data.Time.Clock.Internal.AbsoluteTime.AbsoluteTime
instance Data.Bytes.Serial.Serial GHC.Internal.Data.Semigroup.Internal.All
instance Data.Bytes.Serial.Serial GHC.Internal.Data.Semigroup.Internal.Any
instance Data.Bytes.Serial.Serial GHC.Types.Bool
instance Data.Bytes.Serial.Serial Data.ByteString.Lazy.Internal.ByteString
instance Data.Bytes.Serial.Serial Data.ByteString.Internal.Type.ByteString
instance Data.Bytes.Serial.Serial GHC.Types.Char
instance Data.Bytes.Serial.Serial a => Data.Bytes.Serial.Serial (Data.Functor.Constant.Constant a b)
instance Data.Bytes.Serial.Serial Data.Time.Calendar.Days.Day
instance Data.Bytes.Serial.Serial Data.Time.Clock.Internal.DiffTime.DiffTime
instance Data.Bytes.Serial.Serial GHC.Types.Double
instance Data.Bytes.Serial.Serial a => Data.Bytes.Serial.Serial (GHC.Internal.Data.Ord.Down a)
instance Data.Bytes.Serial.Serial a => Data.Bytes.Serial.Serial (GHC.Internal.Data.Semigroup.Internal.Dual a)
instance (Data.Bytes.Serial.Serial a, Data.Bytes.Serial.Serial b) => Data.Bytes.Serial.Serial (GHC.Internal.Data.Either.Either a b)
instance Data.Bytes.Serial.Serial a => Data.Bytes.Serial.Serial (GHC.Internal.Data.Monoid.First a)
instance Data.Fixed.HasResolution a => Data.Bytes.Serial.Serial (Data.Fixed.Fixed a)
instance Data.Bytes.Serial.Serial GHC.Types.Float
instance (Data.Bytes.Serial.Serial k, Data.Bytes.Serial.Serial v, Data.Hashable.Class.Hashable k, GHC.Classes.Eq k) => Data.Bytes.Serial.Serial (Data.HashMap.Internal.HashMap k v)
instance (Data.Bytes.Serial.Serial v, Data.Hashable.Class.Hashable v, GHC.Classes.Eq v) => Data.Bytes.Serial.Serial (Data.HashSet.Internal.HashSet v)
instance Data.Bytes.Serial.Serial a => Data.Bytes.Serial.Serial (GHC.Internal.Data.Functor.Identity.Identity a)
instance Data.Bytes.Serial.Serial GHC.Types.Int
instance Data.Bytes.Serial.Serial GHC.Internal.Int.Int16
instance Data.Bytes.Serial.Serial GHC.Internal.Int.Int32
instance Data.Bytes.Serial.Serial GHC.Internal.Int.Int64
instance Data.Bytes.Serial.Serial GHC.Internal.Int.Int8
instance Data.Bytes.Serial.Serial v => Data.Bytes.Serial.Serial (Data.IntMap.Internal.IntMap v)
instance Data.Bytes.Serial.Serial Data.IntSet.Internal.IntSet
instance Data.Bytes.Serial.Serial GHC.Num.Integer.Integer
instance Data.Bytes.Serial.Serial a => Data.Bytes.Serial.Serial (GHC.Internal.Data.Monoid.Last a)
instance Data.Bytes.Serial.Serial a => Data.Bytes.Serial.Serial [a]
instance Data.Bytes.Serial.Serial Data.Time.LocalTime.Internal.LocalTime.LocalTime
instance (Data.Bytes.Serial.Serial k, Data.Bytes.Serial.Serial v, GHC.Classes.Ord k) => Data.Bytes.Serial.Serial (Data.Map.Internal.Map k v)
instance Data.Bytes.Serial.Serial a => Data.Bytes.Serial.Serial (GHC.Internal.Maybe.Maybe a)
instance Data.Bytes.Serial.Serial GHC.Num.Natural.Natural
instance Data.Bytes.Serial.Serial Data.Time.Clock.Internal.NominalDiffTime.NominalDiffTime
instance Data.Bytes.Serial.Serial a => Data.Bytes.Serial.Serial (GHC.Internal.Base.NonEmpty a)
instance Data.Bytes.Serial.Serial GHC.Types.Ordering
instance Data.Bytes.Serial.Serial a => Data.Bytes.Serial.Serial (GHC.Internal.Data.Semigroup.Internal.Product a)
instance (Data.Bytes.Serial.Serial (f a), Data.Bytes.Serial.Serial (g a)) => Data.Bytes.Serial.Serial (Data.Functor.Product.Product f g a)
instance (Data.Bytes.Serial.Serial a, GHC.Internal.Real.Integral a) => Data.Bytes.Serial.Serial (GHC.Internal.Real.Ratio a)
instance Data.Bytes.Serial.Serial (f a) => Data.Bytes.Serial.Serial (Data.Functor.Reverse.Reverse f a)
instance Data.Bytes.Serial.Serial Data.Scientific.Scientific
instance Data.Bytes.Serial.Serial a => Data.Bytes.Serial.Serial (Data.Sequence.Internal.Seq a)
instance (Data.Bytes.Serial.Serial a, GHC.Classes.Ord a) => Data.Bytes.Serial.Serial (Data.Set.Internal.Set a)
instance Data.Bytes.Serial.Serial a => Data.Bytes.Serial.Serial (GHC.Internal.Data.Semigroup.Internal.Sum a)
instance Data.Bytes.Serial.Serial Data.Text.Internal.Lazy.Text
instance Data.Bytes.Serial.Serial Data.Text.Internal.Text
instance Data.Bytes.Serial.Serial Data.Time.LocalTime.Internal.TimeOfDay.TimeOfDay
instance Data.Bytes.Serial.Serial Data.Time.LocalTime.Internal.TimeZone.TimeZone
instance (Data.Bytes.Serial.Serial a, Data.Bytes.Serial.Serial b) => Data.Bytes.Serial.Serial (a, b)
instance (Data.Bytes.Serial.Serial a, Data.Bytes.Serial.Serial b, Data.Bytes.Serial.Serial c) => Data.Bytes.Serial.Serial (a, b, c)
instance (Data.Bytes.Serial.Serial a, Data.Bytes.Serial.Serial b, Data.Bytes.Serial.Serial c, Data.Bytes.Serial.Serial d) => Data.Bytes.Serial.Serial (a, b, c, d)
instance (Data.Bytes.Serial.Serial a, Data.Bytes.Serial.Serial b, Data.Bytes.Serial.Serial c, Data.Bytes.Serial.Serial d, Data.Bytes.Serial.Serial e) => Data.Bytes.Serial.Serial (a, b, c, d, e)
instance Data.Bytes.Serial.Serial Data.Time.Clock.Internal.UTCTime.UTCTime
instance Data.Bytes.Serial.Serial ()
instance Data.Bytes.Serial.Serial Data.Time.Clock.Internal.UniversalTime.UniversalTime
instance (GHC.Internal.Bits.Bits n, GHC.Internal.Real.Integral n, GHC.Internal.Bits.Bits (Data.Bytes.Signed.Unsigned n), GHC.Internal.Real.Integral (Data.Bytes.Signed.Unsigned n)) => Data.Bytes.Serial.Serial (Data.Bytes.VarInt.VarInt n)
instance Data.Bytes.Serial.Serial GHC.Internal.Data.Version.Version
instance Data.Bytes.Serial.Serial GHC.Internal.Base.Void
instance Data.Bytes.Serial.Serial GHC.Types.Word
instance Data.Bytes.Serial.Serial GHC.Internal.Word.Word16
instance Data.Bytes.Serial.Serial GHC.Internal.Word.Word32
instance Data.Bytes.Serial.Serial GHC.Internal.Word.Word64
instance Data.Bytes.Serial.Serial GHC.Internal.Word.Word8
instance Data.Bytes.Serial.Serial a => Data.Bytes.Serial.Serial (GHC.Internal.Functor.ZipList.ZipList a)
instance Data.Bytes.Serial.Serial Data.Time.LocalTime.Internal.ZonedTime.ZonedTime
