The RefSerialize package

[Tags: bsd3, library]

Read, Show and Data.Binary do not check for repeated references to the same address. As a result, the data is duplicated when serialized. This is a waste of space in the filesystem and also a waste of serialization time. but the worst consequence is that, when the serialized data is read, it allocates multiple copies for the same object when referenced multiple times. Because multiple referenced data is very typical in a pure language such is Haskell, this means that the resulting data loose the beatiful economy of space and processing time that referential transparency permits.

Every instance of Show/Read is also a instance of Data.RefSerialize.

This package allows the serialization and deserialization of large data structures without duplication of data, with the result of optimized performance and memory usage. It is also useful for debugging purposes.

There are automatic derived instances for instances of Read/Show. Lists of non-chars have its own instance. The deserializer contains a subset of Parsec.Token for defining deserializing parsers.

the serialized string has the form:

expr( var1, ...varn) where  var1=value1,..valn=valueN

so that the string can be EVALuated.

See demo.hs and tutorial.

in this release:

To do:


Versions0.2, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.2.7, 0.2.8,,,,,,,,
Change logNone available
Dependenciesbase (==3.*), containers [details]
AuthorAlberto Gómez Corona
CategoryParsing, Data, Database
UploadedThu Oct 1 19:04:48 UTC 2009 by AlbertoCorona
DistributionsLTSHaskell:, NixOS:, Stackage:
Downloads4519 total (73 in last 30 days)
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]




Maintainers' corner

For package maintainers and hackage trustees