2019-06-25 15:18:34 -04:00
|
|
|
cabal-version: 2.2
|
2019-06-17 13:24:24 -04:00
|
|
|
name: small-bytearray-builder
|
2019-08-02 16:28:25 -04:00
|
|
|
version: 0.2.0.0
|
2019-06-25 15:18:34 -04:00
|
|
|
synopsis: Serialize to a small byte arrays
|
|
|
|
description:
|
|
|
|
This is similar to the builder facilities provided by
|
|
|
|
`Data.ByteString.Builder`. It is intended to be used in
|
|
|
|
situations where the following apply:
|
|
|
|
.
|
|
|
|
* An individual entity will be serialized as a small
|
|
|
|
number of bytes (less than 512).
|
|
|
|
.
|
|
|
|
* A large number (more than 32) of entities will be serialized
|
|
|
|
one after another without anything between them.
|
|
|
|
.
|
|
|
|
Unlike builders from the `bytestring` package, these builders
|
|
|
|
do not track their state when they run out of space. A builder
|
|
|
|
that runs out of space simply aborts and is rerun at the beginning
|
|
|
|
of the next chunk. This strategy for building is suitable for most
|
|
|
|
CSVs and several line protocols (carbon, InfluxDB, etc.).
|
|
|
|
|
2019-06-17 13:24:24 -04:00
|
|
|
homepage: https://github.com/andrewthad/small-bytearray-builder
|
2019-06-25 15:18:34 -04:00
|
|
|
bug-reports: https://github.com/andrewthad/small-bytearray-builder/issues
|
2019-06-17 13:24:24 -04:00
|
|
|
license: BSD-3-Clause
|
|
|
|
license-file: LICENSE
|
|
|
|
author: Andrew Martin
|
|
|
|
maintainer: andrew.thaddeus@gmail.com
|
|
|
|
copyright: 2019 Andrew Martin
|
|
|
|
category: Data
|
|
|
|
extra-source-files: CHANGELOG.md
|
|
|
|
|
2019-06-25 15:18:34 -04:00
|
|
|
flag checked
|
|
|
|
manual: True
|
|
|
|
description: Add bounds-checking to primitive array operations
|
|
|
|
default: False
|
|
|
|
|
2019-06-17 13:24:24 -04:00
|
|
|
library
|
|
|
|
exposed-modules:
|
2019-09-03 14:43:58 -04:00
|
|
|
Data.ByteArray.Builder
|
|
|
|
Data.ByteArray.Builder.Unsafe
|
|
|
|
Data.ByteArray.Builder.Bounded
|
|
|
|
Data.ByteArray.Builder.Bounded.Unsafe
|
2019-06-17 13:24:24 -04:00
|
|
|
build-depends:
|
2019-06-25 17:10:20 -04:00
|
|
|
, base >=4.12.0.0 && <5
|
2019-06-17 13:24:24 -04:00
|
|
|
, byteslice >=0.1 && <0.2
|
2019-06-25 15:18:34 -04:00
|
|
|
, primitive-offset >=0.2 && <0.3
|
|
|
|
, run-st >=0.1 && <0.2
|
|
|
|
, vector >=0.12.0.3 && <0.13
|
2019-08-07 15:23:02 -04:00
|
|
|
, bytestring >=0.10.8.2 && <0.11
|
|
|
|
, text-short >=0.1.3 && <0.2
|
2019-09-03 14:43:58 -04:00
|
|
|
, natural-arithmetic >=0.1 && <0.2
|
2019-06-25 15:18:34 -04:00
|
|
|
if flag(checked)
|
|
|
|
build-depends: primitive-checked >= 0.7 && <0.8
|
|
|
|
else
|
|
|
|
build-depends: primitive >= 0.7 && <0.8
|
2019-06-25 17:10:20 -04:00
|
|
|
ghc-options: -Wall -O2
|
2019-06-17 13:24:24 -04:00
|
|
|
hs-source-dirs: src
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
|
|
|
test-suite test
|
|
|
|
default-language: Haskell2010
|
|
|
|
type: exitcode-stdio-1.0
|
2019-07-05 12:35:05 -04:00
|
|
|
hs-source-dirs: test, common
|
2019-06-17 13:24:24 -04:00
|
|
|
main-is: Main.hs
|
2019-09-03 14:43:58 -04:00
|
|
|
ghc-options: -O2 -Wall
|
2019-07-05 12:35:05 -04:00
|
|
|
other-modules:
|
|
|
|
HexWord64
|
2019-06-17 13:24:24 -04:00
|
|
|
build-depends:
|
2019-09-03 14:58:03 -04:00
|
|
|
, QuickCheck >=2.13.1 && <2.14
|
2019-06-25 17:10:20 -04:00
|
|
|
, base >=4.12.0.0 && <5
|
2019-06-25 15:18:34 -04:00
|
|
|
, byteslice
|
2019-07-03 16:28:36 -04:00
|
|
|
, bytestring
|
2019-09-03 14:58:03 -04:00
|
|
|
, natural-arithmetic
|
|
|
|
, primitive
|
2019-06-17 13:24:24 -04:00
|
|
|
, small-bytearray-builder
|
|
|
|
, tasty >=1.2.3 && <1.3
|
2019-09-03 14:58:03 -04:00
|
|
|
, tasty-hunit >=0.10.0.2 && <0.11
|
|
|
|
, tasty-quickcheck >=0.10.1 && <0.11
|
2019-09-03 14:43:58 -04:00
|
|
|
, text >=1.2 && <1.3
|
2019-06-25 15:18:34 -04:00
|
|
|
, vector
|
2019-07-05 12:35:05 -04:00
|
|
|
|
|
|
|
benchmark bench
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
build-depends:
|
|
|
|
, base
|
|
|
|
, gauge >= 0.2.4
|
2019-09-03 14:58:03 -04:00
|
|
|
, natural-arithmetic
|
2019-07-05 12:35:05 -04:00
|
|
|
, primitive
|
|
|
|
, small-bytearray-builder
|
2019-07-30 08:47:45 -04:00
|
|
|
ghc-options: -Wall -O2
|
2019-07-05 12:35:05 -04:00
|
|
|
default-language: Haskell2010
|
|
|
|
hs-source-dirs: bench, common
|
|
|
|
main-is: Main.hs
|
|
|
|
other-modules:
|
|
|
|
HexWord64
|