Package Info

ghc-vector-builder


Vector builder


Unspecified

An API for efficient and convenient construction of vectors. It provides the composable Builder abstraction, which has instances of the Monoid and Semigroup classes.

[Usage]

First you use the Builder abstraction to specify the structure of the vector. Then you execute the builder to actually produce the vector.

[Example]

The following code shows how you can efficiently concatenate different datastructures into a single immutable vector:

> >import qualified Data.Vector as A >import qualified VectorBuilder.Builder as B >import qualified VectorBuilder.Vector as C > > >myVector :: A.Vector a -> [a] -> a -> A.Vector a >myVector vector list element = > C.build builder > where > builder = > B.vector vector <> > B.foldable list <> > B.singleton element.


License: MIT
URL: https://hackage.haskell.org/package/vector-builder

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.3.8.3-bp155.2.13 info GA Release 2023-05-22 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • ghc-vector-builder
  • ghc-vector-builder-devel
0.3.8.3-bp154.1.11 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • x86-64
  • ghc-vector-builder
  • ghc-vector-builder-devel
0.3.8-bp153.1.20 info GA Release 2021-04-08 15 SP3
  • AArch64
  • ppc64le
  • x86-64
  • ghc-vector-builder
  • ghc-vector-builder-devel
0.3.8-bp152.1.12 info GA Release 2020-06-16 15 SP2
  • AArch64
  • ppc64le
  • x86-64
  • ghc-vector-builder
  • ghc-vector-builder-devel
0.3.7.2-bp151.2.2 info GA Release 2019-07-17 15 SP1
  • ppc64le
  • s390x
  • x86-64
  • ghc-vector-builder
  • ghc-vector-builder-devel
0.3.7.2-bp151.1.10 info GA Release 2019-05-31 15 SP1
  • AArch64
  • ghc-vector-builder
  • ghc-vector-builder-devel