How to Install and Uninstall ghc-vector-builder Package on openSUSE Leap

Last updated: May 18,2024

1. Install "ghc-vector-builder" package

This guide let you learn how to install ghc-vector-builder on openSUSE Leap

$ sudo zypper refresh $ sudo zypper install ghc-vector-builder

2. Uninstall "ghc-vector-builder" package

This is a short guide on how to uninstall ghc-vector-builder on openSUSE Leap:

$ sudo zypper remove ghc-vector-builder

3. Information about the ghc-vector-builder package on openSUSE Leap

Information for package ghc-vector-builder:
-------------------------------------------
Repository : Main Repository
Name : ghc-vector-builder
Version : 0.3.8.3-bp155.2.13
Arch : x86_64
Vendor : openSUSE
Installed Size : 56.9 KiB
Installed : No
Status : not installed
Source package : ghc-vector-builder-0.3.8.3-bp155.2.13.src
Upstream URL : https://hackage.haskell.org/package/vector-builder
Summary : Vector builder
Description :
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 <> > B.foldable list <> > B.singleton
element.

5. The same packages on other Linux Distributions