tagged-binary: Provides tools for serializing data tagged with type information.

[ data, library, mit, serialization ] [ Propose Tags ]

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.

Quick example:

> let x = encodeTagged (1 :: Int)
> decodeTagged x :: Maybe Bool
> decodeTagged x :: Maybe Int
Just 1
Versions [faq],,,
Change log changelog.md
Dependencies base (>=4.6 && <5), binary (>= && <0.8), bytestring (>= && <0.11), data-default (>=0.5.3 && <0.6), pureMD5 (>= && <3), spoon (>=0.3.1 && <0.4) [details]
License MIT
Copyright Copyright (c) Justin Le 2014
Author Justin Le <justin@jle.im>
Maintainer Justin Le <justin@jle.im>
Category Data, Serialization
Source repo head: git clone https://github.com/mstksg/tagged-binary
Uploaded by jle at Tue Mar 18 22:50:24 UTC 2014
Distributions LTSHaskell:, NixOS:, Stackage:
Downloads 2053 total (61 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Successful builds reported [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees