How To Install libghc-bitwise-doc on Debian 12
Introduction
In this tutorial we learn how to install libghc-bitwise-doc
on Debian 12.
What is libghc-bitwise-doc
libghc-bitwise-doc 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 the documentation for a library for the Haskell programming language. See http://www.haskell.org/ for more information on Haskell.
There are three methods to install libghc-bitwise-doc
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-doc 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-doc
using apt-get
by running the following command:
sudo apt-get -y install libghc-bitwise-doc
Install libghc-bitwise-doc Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libghc-bitwise-doc
using apt
by running the following command:
sudo apt -y install libghc-bitwise-doc
Install libghc-bitwise-doc 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-doc
using aptitude
by running the following command:
sudo aptitude -y install libghc-bitwise-doc
How To Uninstall libghc-bitwise-doc on Debian 12
To uninstall only the libghc-bitwise-doc
package we can use the following command:
sudo apt-get remove libghc-bitwise-doc
Uninstall libghc-bitwise-doc And Its Dependencies
To uninstall libghc-bitwise-doc
and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove libghc-bitwise-doc
Remove libghc-bitwise-doc Configurations and Data
To remove libghc-bitwise-doc
configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge libghc-bitwise-doc
Remove libghc-bitwise-doc configuration, data, and all of its dependencies
We can use the following command to remove libghc-bitwise-doc
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libghc-bitwise-doc
Dependencies
libghc-bitwise-doc have the following dependencies:
References
Summary
In this tutorial we learn how to install libghc-bitwise-doc
package on Debian 12 using different package management tools: apt
, apt-get
and aptitude
.