@hackage packstream0.1.0.2
PackStream converter for Neo4j BOLT protocol
Categories
License
BSD-3-Clause
Maintainer
pavel@yakovlev.me
Links
Versions
Installation
Dependencies (7)
- 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 Show all…
Dependents (1)
@hackage/bolty
packstream
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]