How To Install ghc-hashtables on CentOS 7
Introduction
In this tutorial we learn how to install ghc-hashtables
on CentOS 7.
What is ghc-hashtables
This package provides a couple of different implementations of mutable hash tables in the ST monad, as well as a typeclass abstracting their common operations, and a set of wrappers to use the hash tables in the IO monad. This package currently contains three hash table implementations 1. Data.HashTable.ST.Basic contains a basic open-addressing hash table using linear probing as the collision strategy. 2. Data.HashTable.ST.Cuckoo contains an implementation of “cuckoo hashing” which has worst-case O(1) lookups and can reach a high “load factor”. 3. Data.HashTable.ST.Linear contains a linear hash table, which trades some insert and lookup performance for higher space efficiency and much shorter delays when expanding the table.
We can use yum
or dnf
to install ghc-hashtables
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-hashtables.
Install ghc-hashtables on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install ghc-hashtables
using yum
by running the following command:
Install ghc-hashtables on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install ghc-hashtables
using dnf
by running the following command:
How To Uninstall ghc-hashtables on CentOS 7
To uninstall only the ghc-hashtables
package we can use the following command:
References
Summary
In this tutorial we learn how to install ghc-hashtables
on CentOS 7 using yum
and dnf
.