From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6ORZ-0000Ln-Jj for guix-patches@gnu.org; Sun, 22 Oct 2017 18:10:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e6ORW-0002nv-4y for guix-patches@gnu.org; Sun, 22 Oct 2017 18:10:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:47648) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e6ORW-0002nV-0M for guix-patches@gnu.org; Sun, 22 Oct 2017 18:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e6ORV-0006nx-MD for guix-patches@gnu.org; Sun, 22 Oct 2017 18:10:01 -0400 Subject: [bug#28884] [PATCH 32/38] gnu: Add ghc-vector-builder. Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20171018030217.1001-1-s@ricketyspace.net> <20171018030758.1211-1-s@ricketyspace.net> <20171018030758.1211-32-s@ricketyspace.net> Date: Sun, 22 Oct 2017 15:09:06 -0700 In-Reply-To: <20171018030758.1211-32-s@ricketyspace.net> (rsiddharth's message of "Wed, 18 Oct 2017 03:07:52 +0000") Message-ID: <8760b6zvgd.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: rsiddharth Cc: 28884@debbugs.gnu.org --=-=-= Content-Type: text/plain rsiddharth skribis: > * gnu/packages/haskell.scm (ghc-vector-builder): New variable. Removed the example: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index 2c4752ac8..9fd28fe05 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -9922,35 +9922,12 @@ the community, with the missing features being added with pull-requests.") (home-page "https://github.com/nikita-volkov/vector-builder") (synopsis "Vector builder for Haskell") (description "This Haskell package provides an API for constructing vectors. - It provides the composable @code{Builder} abstraction, which has instances of the @code{Monoid} and @code{Semigroup} classes. -Usage: - -First you use the @code{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: - -@verbatim -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 -@end verbatim -") +You would first use the @code{Builder} abstraction to specify the structure of +the vector; then you can execute the builder to actually produce the +vector. ") (license license:expat))) ;;; haskell.scm ends here --=-=-=--