binary-generic

Generic binary serialisation using binary and syb. http://github.com/lpeterse/binary-generic

Latest on Hackage:0.2.1

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD-3-Clause licensed and maintained by Lars Petersen

Instead of manual or semi-automated generation of instances of Data.Binary.Binary you just derive Data.Data.Data and the library automatically figures out how to (de-)serialize the type. You may also define your own type-specific stack of serialisation functions.