cereal-derive-0.1.1: Automatic deriving of Serialize using GHC.Generics

Data.Serialize.Derive

Synopsis

Documentation

derivePut :: (Generic t, GSerialize (Rep t)) => t -> PutSource

Derives a put function for an instance of Serialize. Normally you won't call this from anywhere except that put function in your instance declaration.

deriveGet :: (Generic t, GSerialize (Rep t)) => Get tSource

Derives a get value for an instance of Serialize. Normally you won't use this from anywhere except that get value in your instance declaration.