name: tagged-binary version: 0.2.0.1 synopsis: Provides tools for serializing data tagged with type information. description: 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 > Nothing > > decodeTagged x :: Maybe Int > Just 1 license: MIT license-file: LICENSE author: Justin Le maintainer: Justin Le copyright: Copyright (c) Justin Le 2015 category: Data, Serialization build-type: Simple extra-source-files: CHANGELOG.md , README.md cabal-version: >=1.10 source-repository head type: git location: https://github.com/mstksg/tagged-binary library exposed-modules: Data.Binary.Tagged , Data.Binary.Tagged.Internal -- other-modules: -- other-extensions: build-depends: base >= 4.6 && <5 , base-compat , binary >= 0.7.1 , bytestring >= 0.10.4 , pureMD5 >= 2.1 -- hs-source-dirs: default-language: Haskell2010 ghc-options: -Wall