summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Todaro <solpeth@posteo.org>2020-08-01 09:14:06 +1000
committerSergei Trofimovich <slyfox@gentoo.org>2020-08-01 09:03:54 +0100
commit8fb5d8089a049a16d8bbbcddd1683c79e652ce05 (patch)
tree0debf8a5416904022302e2498e9813c099fd8e38 /dev-haskell/vector-builder
parentdev-haskell/openglraw: bump up to 3.3.4.0 (diff)
downloadgentoo-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')
-rw-r--r--dev-haskell/vector-builder/Manifest1
-rw-r--r--dev-haskell/vector-builder/metadata.xml36
-rw-r--r--dev-haskell/vector-builder/vector-builder-0.3.8.ebuild34
3 files changed, 71 insertions, 0 deletions
diff --git a/dev-haskell/vector-builder/Manifest b/dev-haskell/vector-builder/Manifest
new file mode 100644
index 00000000000..fdf9e0514f4
--- /dev/null
+++ b/dev-haskell/vector-builder/Manifest
@@ -0,0 +1 @@
+DIST vector-builder-0.3.8.tar.gz 5045 BLAKE2B 1e599a0e50102c50cd6057cf892d97f9dad7468b0e49500743bf422b8a9e085d062b9b4e13ae9bb68d3c59e6bb549e77a962fdaed91d5a3e3e5d74b8ec45a6b7 SHA512 e7ca1b6ba35aa76e16ad485cfd5e326c2b257339d2aadc57b7ce2a5ec3d5790fec99e5546ea18351cd9cbf31e7ec99c737461950acd355f62be27b53edb2be17
diff --git a/dev-haskell/vector-builder/metadata.xml b/dev-haskell/vector-builder/metadata.xml
new file mode 100644
index 00000000000..95e22703be1
--- /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:
+
+ &gt;
+ &gt;import qualified Data.Vector as A
+ &gt;import qualified VectorBuilder.Builder as B
+ &gt;import qualified VectorBuilder.Vector as C
+ &gt;
+ &gt;
+ &gt;myVector :: A.Vector a -&gt; [a] -&gt; a -&gt; A.Vector a
+ &gt;myVector vector list element =
+ &gt; C.build builder
+ &gt; where
+ &gt; builder =
+ &gt; B.vector vector &lt;&gt;
+ &gt; foldMap B.singleton list &lt;&gt;
+ &gt; B.singleton element
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-haskell/vector-builder/vector-builder-0.3.8.ebuild b/dev-haskell/vector-builder/vector-builder-0.3.8.ebuild
new file mode 100644
index 00000000000..5c2ac8cc49f
--- /dev/null
+++ b/dev-haskell/vector-builder/vector-builder-0.3.8.ebuild
@@ -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 )
+"