The tagged-binary package
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.
Very minimal library providing tools for serializing and decoding data into ByteString tagged with information about its type, inspired by Cloud Haskell and distributed-process.
Intended for use by libraries and frameworks in distributed contexts, such as distributed computation between native servers and communication between native servers and ghcjs/various front-ends, for behavior similar to the polymorphic communication channels of Cloud Haskell and distributed-process; servers can send tagged data, and clients can choose to selectively accept, ignore or queue incoming messages depending on their types.
For basic encoding, decoding and categorization, only Data.Binary.Tagged should be necessary. Data.Binary.Tagged.Internal is exported in case you need it.
> let x = encodeTagged (1 :: Int) > decodeTagged x :: Maybe Bool Nothing > decodeTagged x :: Maybe Int Just 1
|Versions||0.1.0.0, 0.1.2.0, 0.1.2.0, 0.2.0.0|
|Dependencies||base (>=4.6 && <5), binary (>=0.7.1.0 && <0.8), bytestring (>=0.10.4.0 && <0.11), data-default (>=0.5.3 && <0.6), pureMD5 (>=184.108.40.206 && <3), spoon (>=0.3.1 && <0.4) [details]|
|Copyright||Copyright (c) Justin Le 2014|
|Author||Justin Le <email@example.com>|
|Maintainer||Justin Le <firstname.lastname@example.org>|
|Source repository||head: git clone https://github.com/mstksg/tagged-binary|
|Uploaded||Tue Mar 18 22:49:36 UTC 2014 by jle|
- tagged-binary-0.1.2.0.tar.gz [browse] (Cabal source package)
- Package description (included in the package)
For package maintainers and hackage trustees