binary-derive-0.1: Automatic deriving of Binary using GHC.Generics

Data.Binary.Derive

Synopsis

Documentation

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

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

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

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