mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
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>
This commit is contained in:
committed by
Sergei Trofimovich
parent
8922aab593
commit
8fb5d8089a
1
dev-haskell/vector-builder/Manifest
Normal file
1
dev-haskell/vector-builder/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST vector-builder-0.3.8.tar.gz 5045 BLAKE2B 1e599a0e50102c50cd6057cf892d97f9dad7468b0e49500743bf422b8a9e085d062b9b4e13ae9bb68d3c59e6bb549e77a962fdaed91d5a3e3e5d74b8ec45a6b7 SHA512 e7ca1b6ba35aa76e16ad485cfd5e326c2b257339d2aadc57b7ce2a5ec3d5790fec99e5546ea18351cd9cbf31e7ec99c737461950acd355f62be27b53edb2be17
|
||||
36
dev-haskell/vector-builder/metadata.xml
Normal file
36
dev-haskell/vector-builder/metadata.xml
Normal file
@@ -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>
|
||||
34
dev-haskell/vector-builder/vector-builder-0.3.8.ebuild
Normal file
34
dev-haskell/vector-builder/vector-builder-0.3.8.ebuild
Normal file
@@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
# ebuild generated by hackport 0.6.9999
|
||||
|
||||
CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
|
||||
inherit haskell-cabal
|
||||
|
||||
DESCRIPTION="Vector builder"
|
||||
HOMEPAGE="https://github.com/nikita-volkov/vector-builder"
|
||||
SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="<dev-haskell/base-prelude-2:=[profile?]
|
||||
>=dev-haskell/semigroups-0.16:=[profile?] <dev-haskell/semigroups-0.20:=[profile?]
|
||||
>=dev-haskell/vector-0.11:=[profile?] <dev-haskell/vector-0.13:=[profile?]
|
||||
>=dev-lang/ghc-7.10.1:=
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.22.2.0
|
||||
test? ( >=dev-haskell/attoparsec-0.13 <dev-haskell/attoparsec-0.14
|
||||
>=dev-haskell/quickcheck-2.8.1 <dev-haskell/quickcheck-3
|
||||
>=dev-haskell/quickcheck-instances-0.3.11 <dev-haskell/quickcheck-instances-0.4
|
||||
<dev-haskell/rerebase-2
|
||||
>=dev-haskell/tasty-0.12 <dev-haskell/tasty-2
|
||||
>=dev-haskell/tasty-hunit-0.9 <dev-haskell/tasty-hunit-0.11
|
||||
>=dev-haskell/tasty-quickcheck-0.9 <dev-haskell/tasty-quickcheck-0.11 )
|
||||
"
|
||||
Reference in New Issue
Block a user