genericserialize: Serialization library using Data.Generics
GenericSerialize is a library for serialization using the existing generic-programming framework.
It is often advocated that support for serialization should be added to the compiler (e.g. in the form of a deriving(Binary)). With this I intend to show that the existing infrastructure is sufficient, and has some advantages over a dedicated serialization interface.
The main advantage that generic serialization posseses is that it is possible to simultaneously have several serialization modes. While interfaces such as AltBinary allow writing to any type of stream, the data format is fixed. By contrast, GenericSerialize supports multiple serialization modes; while the only currently existing module is for a subset of R5RS s-expressions, that module is less than 100 lines of code and is almost pure grammar.
[Skip to Readme]
Modules
[Index]
Downloads
- genericserialize-0.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1 |
---|---|
Dependencies | base [details] |
Tested with | ghc ==6.8.2 |
License | BSD-3-Clause |
Author | Stefan O'Rear |
Maintainer | Stefan O'Rear <stefanor@cox.net> |
Category | Data |
Uploaded | by GwernBranwen at 2008-03-16T04:51:45Z |
Distributions | |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Downloads | 1349 total (1 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |