diff options
author | Jack Todaro <solpeth@posteo.org> | 2020-08-01 09:14:06 +1000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-08-01 09:03:54 +0100 |
commit | 8fb5d8089a049a16d8bbbcddd1683c79e652ce05 (patch) | |
tree | 0debf8a5416904022302e2498e9813c099fd8e38 /dev-haskell/vector-builder/metadata.xml | |
parent | dev-haskell/openglraw: bump up to 3.3.4.0 (diff) | |
download | gentoo-8fb5d8089a049a16d8bbbcddd1683c79e652ce05.tar.gz gentoo-8fb5d8089a049a16d8bbbcddd1683c79e652ce05.tar.bz2 gentoo-8fb5d8089a049a16d8bbbcddd1683c79e652ce05.zip |
dev-haskell/vector-builder: add package
Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: Jack Todaro <solpeth@posteo.org>
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-haskell/vector-builder/metadata.xml')
-rw-r--r-- | dev-haskell/vector-builder/metadata.xml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-haskell/vector-builder/metadata.xml b/dev-haskell/vector-builder/metadata.xml new file mode 100644 index 000000000000..95e22703be14 --- /dev/null +++ b/dev-haskell/vector-builder/metadata.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>haskell@gentoo.org</email> + <name>Gentoo Haskell</name> + </maintainer> + <longdescription> + 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 <> + > foldMap B.singleton list <> + > B.singleton element + </longdescription> +</pkgmetadata> |