Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- class Deserializable chType where
- deserialize :: ProtocolRevision -> Get chType
- class GDeserializable f where
- gDeserialize :: ProtocolRevision -> Get (f p)
- class Serializable chType where
- serialize :: ProtocolRevision -> chType -> Builder
- class GSerializable f where
- gSerialize :: ProtocolRevision -> f p -> Builder
Deserialization
class Deserializable chType where Source #
Nothing
deserialize :: ProtocolRevision -> Get chType Source #
default deserialize :: (Generic chType, GDeserializable (Rep chType)) => ProtocolRevision -> Get chType Source #
Instances
Generics
class GDeserializable f where Source #
gDeserialize :: ProtocolRevision -> Get (f p) Source #
Instances
GDeserializable (left :*: (right1 :*: right2)) => GDeserializable ((left :*: right1) :*: right2) Source # | |
Defined in ClickHaskell.DeSerialization gDeserialize :: ProtocolRevision -> Get (((left :*: right1) :*: right2) p) Source # | |
(GDeserializable (S1 metaSel field), GDeserializable right) => GDeserializable (S1 metaSel field :*: right) Source # | |
Defined in ClickHaskell.DeSerialization gDeserialize :: ProtocolRevision -> Get ((S1 metaSel field :*: right) p) Source # | |
GDeserializable f => GDeserializable (D1 c (C1 c2 f)) Source # | |
Defined in ClickHaskell.DeSerialization gDeserialize :: ProtocolRevision -> Get (D1 c (C1 c2 f) p) Source # | |
Deserializable chType => GDeserializable (S1 ('MetaSel ('Just typeName) a b f) (Rec0 chType)) Source # | |
Defined in ClickHaskell.DeSerialization gDeserialize :: ProtocolRevision -> Get (S1 ('MetaSel ('Just typeName) a b f) (Rec0 chType) p) Source # |
Versioning
Database types
Serialization
class Serializable chType where Source #
Nothing
serialize :: ProtocolRevision -> chType -> Builder Source #
default serialize :: (Generic chType, GSerializable (Rep chType)) => ProtocolRevision -> chType -> Builder Source #
Instances
Versioning
Database types
Generics
class GSerializable f where Source #
gSerialize :: ProtocolRevision -> f p -> Builder Source #
Instances
GSerializable (left1 :*: (left2 :*: right)) => GSerializable ((left1 :*: left2) :*: right) Source # | |
Defined in ClickHaskell.DeSerialization gSerialize :: ProtocolRevision -> ((left1 :*: left2) :*: right) p -> Builder Source # | |
(Serializable chType, GSerializable right) => GSerializable (S1 ('MetaSel ('Just typeName) a b f) (Rec0 chType) :*: right) Source # | |
Defined in ClickHaskell.DeSerialization gSerialize :: ProtocolRevision -> (S1 ('MetaSel ('Just typeName) a b f) (Rec0 chType) :*: right) p -> Builder Source # | |
GSerializable f => GSerializable (D1 c (C1 c2 f)) Source # | |
Defined in ClickHaskell.DeSerialization gSerialize :: ProtocolRevision -> D1 c (C1 c2 f) p -> Builder Source # | |
Serializable chType => GSerializable (S1 ('MetaSel ('Just typeName) a b f) (Rec0 chType)) Source # | |
Defined in ClickHaskell.DeSerialization gSerialize :: ProtocolRevision -> S1 ('MetaSel ('Just typeName) a b f) (Rec0 chType) p -> Builder Source # |