jgm/pandoc-types — pull request #6 by basvandijk (2012-02-16 18:59:32+00:00)
Title: Derive GHC.Generics.Generic for all types if ghc >= 7.2.1

Hi John,

I would like to serialize a Pandoc using cereal. Some time ago I added default generic definitions to the [Serialize](http://hackage.haskell.org/packages/archive/cereal/0.3.5.1/doc/html/Data-Serialize.html) class in cereal. So if your type is an instance of Generic you get serialization for free.

It would save me a lot of work if all the Pandoc types are instances of Generic. So this patch derives Generic instances for all types using the `DeriveGeneric` language extension if GHC >= 7.2.1 (This is the first version that supports that extension).

Regards,

Bas