https://github.com/zmactep/packstream
PackStream converter for Neo4j BOLT protocol
https://github.com/zmactep/packstream
hackage haskell neo4j
Last synced: 3 months ago
JSON representation
PackStream converter for Neo4j BOLT protocol
- Host: GitHub
- URL: https://github.com/zmactep/packstream
- Owner: zmactep
- License: bsd-3-clause
- Created: 2021-05-25T20:00:10.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-27T07:56:36.000Z (about 4 years ago)
- Last Synced: 2024-04-24T17:41:45.546Z (about 1 year ago)
- Topics: hackage, haskell, neo4j
- Language: Haskell
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
Awesome Lists containing this project
README
# packstream
[](https://travis-ci.com/zmactep/packstream)
[](https://github.com/zmactep/packstream/actions?query=workflow%3A%228.10.1%22)
[](https://github.com/zmactep/packstream/actions?query=workflow%3A%228.8.3%22)
[](https://github.com/zmactep/packstream/actions?query=workflow%3A%228.6.5%22)
[](https://github.com/zmactep/packstream/actions?query=workflow%3A%228.0.2%22)
[](https://hackage.haskell.org/package/packstream)
[](https://hackage.haskell.org/package/packstream)PackStream converter for Neo4j BOLT protocol
Documentation
-------------To build Haddock documentation run:
```bash
$ stack haddock
```Usage example
-------------```haskell
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]
```