2019-06-25 15:18:34 -04:00
|
|
|
cabal-version: 2.2
|
2020-02-27 13:58:00 -05:00
|
|
|
name: bytebuild
|
2023-05-03 13:33:37 -04:00
|
|
|
version: 0.3.14.0
|
2022-04-12 16:45:47 -04:00
|
|
|
synopsis: Build byte arrays
|
2019-06-25 15:18:34 -04:00
|
|
|
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.).
|
2023-02-26 01:04:12 -05:00
|
|
|
|
2020-02-27 13:58:00 -05:00
|
|
|
homepage: https://github.com/byteverse/bytebuild
|
|
|
|
bug-reports: https://github.com/byteverse/bytebuild/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:
|
2020-02-27 13:58:00 -05:00
|
|
|
Data.Bytes.Builder
|
2021-09-15 14:57:10 -04:00
|
|
|
Data.Bytes.Builder.Class
|
|
|
|
Data.Bytes.Builder.Template
|
2020-02-27 13:58:00 -05:00
|
|
|
Data.Bytes.Builder.Unsafe
|
|
|
|
Data.Bytes.Builder.Bounded
|
2021-09-15 14:57:10 -04:00
|
|
|
Data.Bytes.Builder.Bounded.Class
|
2020-02-27 13:58:00 -05:00
|
|
|
Data.Bytes.Builder.Bounded.Unsafe
|
2022-04-08 10:43:40 -04:00
|
|
|
other-modules:
|
|
|
|
Compat
|
2022-08-01 16:43:59 -04:00
|
|
|
Op
|
2020-01-15 16:50:24 -05:00
|
|
|
reexported-modules:
|
|
|
|
Data.Bytes.Chunks
|
2019-06-17 13:24:24 -04:00
|
|
|
build-depends:
|
2022-12-01 11:20:27 -05:00
|
|
|
, base >=4.12.0.0 && <4.18
|
2021-11-19 15:52:59 -05:00
|
|
|
, byteslice >=0.2.6 && <0.3
|
2022-03-01 13:47:04 -05:00
|
|
|
, bytestring >=0.10.8.2 && <0.12
|
2021-09-15 14:57:10 -04:00
|
|
|
, haskell-src-meta >=0.8
|
2020-04-13 11:29:38 -04:00
|
|
|
, integer-logarithms >=1.0.3 && <1.1
|
2023-06-22 11:27:40 -04:00
|
|
|
, natural-arithmetic >=0.1 && <0.3
|
2019-06-25 15:18:34 -04:00
|
|
|
, primitive-offset >=0.2 && <0.3
|
2023-05-03 13:33:37 -04:00
|
|
|
, run-st >=0.1.2 && <0.2
|
2021-09-15 14:57:10 -04:00
|
|
|
, template-haskell >=2.16
|
2023-01-19 11:24:34 -05:00
|
|
|
, text >=1.2 && <2.2
|
2019-08-07 15:23:02 -04:00
|
|
|
, text-short >=0.1.3 && <0.2
|
2019-10-17 11:26:14 -04:00
|
|
|
, wide-word >=0.1.0.9 && <0.2
|
2022-01-24 14:28:18 -05:00
|
|
|
, zigzag
|
2022-04-08 10:43:40 -04:00
|
|
|
if impl(ghc >= 9.2)
|
|
|
|
hs-source-dirs: src-9.2
|
|
|
|
else
|
|
|
|
if impl(ghc >= 8.10)
|
|
|
|
hs-source-dirs: src-9.0
|
2019-06-25 15:18:34 -04:00
|
|
|
if flag(checked)
|
2023-02-26 01:04:12 -05:00
|
|
|
build-depends: primitive-checked >= 0.7 && <0.9
|
2022-08-01 16:43:59 -04:00
|
|
|
hs-source-dirs: src-checked
|
2019-06-25 15:18:34 -04:00
|
|
|
else
|
2023-02-26 01:04:12 -05:00
|
|
|
build-depends: primitive >= 0.7 && <0.9
|
2022-08-01 16:43:59 -04:00
|
|
|
hs-source-dirs: src-unchecked
|
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
|
2020-12-18 13:03:04 -05:00
|
|
|
c-sources: cbits/bytebuild_custom.c
|
2019-06-17 13:24:24 -04:00
|
|
|
|
|
|
|
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-09-22 09:20:03 -04:00
|
|
|
Word16Tree
|
2019-06-17 13:24:24 -04:00
|
|
|
build-depends:
|
2022-02-01 00:32:18 -05:00
|
|
|
, QuickCheck >=2.13.1 && <2.15
|
2019-06-25 17:10:20 -04:00
|
|
|
, base >=4.12.0.0 && <5
|
2020-02-27 13:58:00 -05:00
|
|
|
, bytebuild
|
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-11-22 16:24:48 -05:00
|
|
|
, primitive-unlifted >=0.1.2
|
2019-10-22 20:50:37 -04:00
|
|
|
, quickcheck-classes >=0.6.4
|
2020-04-13 11:29:38 -04:00
|
|
|
, quickcheck-instances >=0.3.22
|
2021-09-15 14:57:10 -04:00
|
|
|
, text-short
|
2022-04-12 16:06:50 -04:00
|
|
|
, tasty >=1.2.3 && <1.5
|
2019-09-03 14:58:03 -04:00
|
|
|
, tasty-hunit >=0.10.0.2 && <0.11
|
|
|
|
, tasty-quickcheck >=0.10.1 && <0.11
|
2022-12-01 11:20:27 -05:00
|
|
|
, text >=1.2 && <2.2
|
2019-06-25 15:18:34 -04:00
|
|
|
, vector
|
2019-10-17 11:26:14 -04:00
|
|
|
, wide-word >=0.1.0.9 && <0.2
|
2019-07-05 12:35:05 -04:00
|
|
|
|
|
|
|
benchmark bench
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
build-depends:
|
|
|
|
, base
|
2020-02-27 13:58:00 -05:00
|
|
|
, bytebuild
|
2019-07-05 12:35:05 -04:00
|
|
|
, gauge >= 0.2.4
|
2019-09-03 14:58:03 -04:00
|
|
|
, natural-arithmetic
|
2019-07-05 12:35:05 -04:00
|
|
|
, primitive
|
2019-09-20 09:23:08 -04:00
|
|
|
, text-short
|
2019-09-22 09:20:03 -04:00
|
|
|
, byteslice
|
2019-10-17 09:46:06 -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:
|
2019-09-20 09:23:08 -04:00
|
|
|
Cell
|
2019-07-05 12:35:05 -04:00
|
|
|
HexWord64
|
2019-09-20 09:23:08 -04:00
|
|
|
SimpleCsv
|
2019-09-22 09:20:03 -04:00
|
|
|
Word16Tree
|