[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#28884] [PATCH 32/38] gnu: Add ghc-vector-builder.

From: Ludovic Courtès
Subject: [bug#28884] [PATCH 32/38] gnu: Add ghc-vector-builder.
Date: Sun, 22 Oct 2017 15:09:06 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

rsiddharth <address@hidden> skribis:

> * gnu/packages/haskell.scm (ghc-vector-builder): New variable.

Removed the example:

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 "";)
     (synopsis "Vector builder for Haskell")
     (description "This Haskell package provides an API for constructing 
 It provides the composable @code{Builder} abstraction, which has instances of 
 @code{Monoid} and @code{Semigroup} classes.
-First you use the @code{Builder} abstraction to specify the structure of the
-vector.  Then you execute the builder to actually produce the vector.
-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 =
- builder
-  where
-    builder =
-      B.vector vector <>
-      foldMap B.singleton list <>
-      B.singleton element
address@hidden 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]