binary-typed: Type-safe binary serialization
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
Binary
serialization tagged with type information, allowing for
typechecking and useful error messages at the receiving site.
This package serves the same purpose as tagged-binary, with a couple of key differences:
Support of different kinds of serialized type annotations, each with specific strengths and weaknesses.
Error messages can provide details on type errors at the cost of longer message lengths to include the necessary information.
Serialization computationally almost as efficient as Data.Binary when precaching type representations; decoding however is slower. These values obviously depend a lot on the involved data and its type; an example benchmark is shown in the picture below.
No depencency on
Internal
modules of other libraries, and a very small dependency footprint in general.
For information about usage, see the Data.Binary.Typed.Tutorial module.
Performance-wise, here is a value Left (Left <100 chars lipsum>)
of
type Either (Char, Int) (Either String (Maybe Integer))
benchmarked
using the Hashed
type representation:
Properties
Versions | 0.1.0.0, 0.1.0.0, 0.1.0.1, 0.2.0.0, 0.2.0.1, 0.2.1.0, 0.2.2, 0.2.3, 0.3, 1.0 |
---|---|
Change log | None available |
Dependencies | base (>=4.7 && <5), binary (>=0.7), bytestring (>=0.9), murmur-hash (>=0.1) [details] |
License | BSD-2-Clause |
Copyright | David Luposchainsky |
Author | David Luposchainsky |
Maintainer | dluposchainsky on googles email service |
Category | Data, Serialization |
Home page | https://github.com/quchen/binary-typed |
Bug tracker | https://github.com/quchen/binary-typed/issues |
Source repo | head: git clone https://github.com/quchen/binary-typed |
Uploaded | by quchen at 2014-07-05T20:10:47Z |
Modules
[Index]
Downloads
- binary-typed-0.1.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees