cabal-version: 3.0
name: bytestring-strict-builder
version: 0.4.5.7
category: Text, ByteString, Builders, Serialization
synopsis: An efficient strict bytestring builder
description:
According to
<https://github.com/nikita-volkov/bytestring-builders-benchmark the competition benchmarks>,
this library provides on average the fastest builder of strict bytestrings.
.
Practical benchmarks have proven it to be highly performant as well.
The encoders from the \"postgresql-binary\" library have shown
a stable performance improvement by factors of up to 10 after the migration
from the standard builder to \"bytestring-strict-builder\".
homepage: https://github.com/nikita-volkov/bytestring-strict-builder
bug-reports:
https://github.com/nikita-volkov/bytestring-strict-builder/issues
author: Nikita Volkov <nikita.y.volkov@mail.ru>
maintainer: Nikita Volkov <nikita.y.volkov@mail.ru>
copyright: (c) 2017, Nikita Volkov
license: MIT
license-file: LICENSE
source-repository head
type: git
location:
git://github.com/nikita-volkov/bytestring-strict-builder.git
common base
default-language: Haskell2010
default-extensions:
NoImplicitPrelude
NoMonomorphismRestriction
Arrows
BangPatterns
ConstraintKinds
DataKinds
DefaultSignatures
DeriveDataTypeable
DeriveFoldable
DeriveFunctor
DeriveGeneric
DeriveTraversable
EmptyDataDecls
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GADTs
GeneralizedNewtypeDeriving
LambdaCase
LiberalTypeSynonyms
MagicHash
MultiParamTypeClasses
MultiWayIf
OverloadedStrings
ParallelListComp
PatternGuards
QuasiQuotes
RankNTypes
RecordWildCards
ScopedTypeVariables
StandaloneDeriving
TemplateHaskell
TupleSections
TypeFamilies
TypeOperators
UnboxedTuples
library
import: base
hs-source-dirs: library
exposed-modules: ByteString.StrictBuilder
other-modules:
ByteString.StrictBuilder.Population
ByteString.StrictBuilder.Population.UncheckedShifting
ByteString.StrictBuilder.Prelude
ByteString.StrictBuilder.UTF8
build-depends:
, base >=4.11 && <5
, bytestring >=0.10.2 && <0.13
test-suite tests
import: base
type: exitcode-stdio-1.0
hs-source-dirs: tests
main-is: Main.hs
build-depends:
, bytestring-strict-builder
, quickcheck-instances >=0.3.11 && <0.4
, rerebase >=1.10 && <2
, tasty >=1.4 && <2
, tasty-quickcheck >=0.10 && <0.11
benchmark benchmarks
import: base
type: exitcode-stdio-1.0
hs-source-dirs: benchmarks
main-is: Main.hs
ghc-options: -O2 -threaded -with-rtsopts=-N -funbox-strict-fields
build-depends:
, bytestring-strict-builder
, criterion >=1.6 && <2
, rerebase >=1.10 && <2