packstream: PackStream converter for Neo4j BOLT protocol

[ bsd3, data, library ] [ Propose Tags ] [ Report a vulnerability ]
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.0.2
Change log ChangeLog.md
Dependencies base (>=4.7 && <5), binary (>=0.8.3.0 && <0.11), bytestring (>=0.10.8.1 && <0.12), containers (>=0.5.7.1 && <0.7), data-binary-ieee754 (>=0.4.4 && <0.5), mtl (>=2.2.0 && <2.3), text (>=1.2.2.1 && <1.3) [details]
License BSD-3-Clause
Copyright (c) 2021, Pavel Yakovlev
Author Pavel Yakovlev
Maintainer pavel@yakovlev.me
Category Data
Home page https://github.com/zmactep/packstream#readme
Bug tracker https://github.com/zmactep/packstream/issues
Source repo head: git clone https://github.com/zmactep/packstream
Uploaded by zmactep at 2021-05-27T07:56:03Z
Distributions
Downloads 442 total (6 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2021-05-27 [all 1 reports]

Readme for packstream-0.1.0.2

[back to package description]

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]