How To Install libghc-bitwise-prof on Debian 12
Introduction
In this tutorial we learn how to install libghc-bitwise-prof
on Debian 12.
What is libghc-bitwise-prof
libghc-bitwise-prof is:
Unboxed multidimensional bit packed Bool arrays with fast aggregate operations based on lifting Bool operations to bitwise operations.
There are many other bit packed structures out there, but none met all of these requirements:
(1) unboxed bit packed Bool array,
(2) multi-dimensional indexing,
(3) fast (de)serialization, or interoperable with foreign code,
(4) fast aggregate operations (fold, map, zip).
Quick tour of the bitwise library:
[Data.Bits.Bitwise] Lift boolean operations on ‘Bool’ to bitwise operations on ‘Data.Bits.Bits’.
[Data.Array.BitArray] Immutable bit arrays.
[Data.Array.BitArray.ST] Mutable bit arrays in ‘Control.Monad.ST.ST’.
[Data.Array.BitArray.IO] Mutable bit arrays in ‘IO’.
[Data.Array.BitArray.ByteString] (De)serialization.
[Codec.Image.PBM] Portable bitmap monochrome 2D image format.
Very rough performance benchmarks:
immutable random access single bit reads: @BitArray ix@ is about 40% slower than @UArray ix Bool@,
‘Control.Monad.ST.ST’ mutable random access single bit reads: @STBitArray s ix@ is about the same as @STUArray s ix Bool@,
immutable map @Bool -> Bool@: @BitArray ix@ is about 85x faster than @UArray ix Bool@,
immutable zipWith @Bool -> Bool -> Bool@: @BitArray ix@ is about 1300x faster than @UArray ix Bool@.
This package provides a library for the Haskell programming language, compiled for profiling. See http://www.haskell.org/ for more information on Haskell.
There are three methods to install libghc-bitwise-prof
on Debian 12. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libghc-bitwise-prof Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libghc-bitwise-prof
using apt-get
by running the following command:
sudo apt-get -y install libghc-bitwise-prof
Install libghc-bitwise-prof Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libghc-bitwise-prof
using apt
by running the following command:
sudo apt -y install libghc-bitwise-prof
Install libghc-bitwise-prof Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libghc-bitwise-prof
using aptitude
by running the following command:
sudo aptitude -y install libghc-bitwise-prof
How To Uninstall libghc-bitwise-prof on Debian 12
To uninstall only the libghc-bitwise-prof
package we can use the following command:
sudo apt-get remove libghc-bitwise-prof
Uninstall libghc-bitwise-prof And Its Dependencies
To uninstall libghc-bitwise-prof
and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove libghc-bitwise-prof
Remove libghc-bitwise-prof Configurations and Data
To remove libghc-bitwise-prof
configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge libghc-bitwise-prof
Remove libghc-bitwise-prof configuration, data, and all of its dependencies
We can use the following command to remove libghc-bitwise-prof
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libghc-bitwise-prof
Dependencies
libghc-bitwise-prof have the following dependencies:
- libghc-array-prof-0.5.4.0-0b6fa
- libghc-base-prof-4.15.1.0-6a406
- libghc-bitwise-dev
- libghc-bytestring-prof-0.10.12.1-ced9a
References
Summary
In this tutorial we learn how to install libghc-bitwise-prof
package on Debian 12 using different package management tools: apt
, apt-get
and aptitude
.