@hackage / packstream

PackStream converter for Neo4j BOLT protocol

Latest0.1.0.2

About

Metadata

  • Last updated , by zmactep
  • License BSD-3-Clause
  • Maintained by: pavel@yakovlev.me

  • Lottery factor: 0

Links

Installation

Readme

packstream

Travis GitHub Build GitHub Build GitHub Build GitHub Build hackage hackage-deps

PackStream converter for Neo4j BOLT protocol

Documentation

To build Haddock documentation run:

$ stack haddock

Usage example

ghci> :set -XOverloadedStrings
ghci> import Data.ByteString
ghci> import Data.PackStream
ghci> import Data.PackStream.Internal.Hex
ghci> hex (pack 100500)
"CA00018894"
ghci> hex (pack [True, False, True])
"93C3C2C3"
ghci> bs <- unhex "93C3C2C3" :: IO ByteString
ghci> unpack bs :: IO [Bool]
[True, False, True]
ghci> unpack bs :: IO [Value]
[B True, B False, B True]