How To Install ghc-hashtables on Fedora 36

In this tutorial we learn how to install ghc-hashtables in Fedora 36. ghc-hashtables is Mutable hash tables in the ST monad

Introduction

In this tutorial we learn how to install ghc-hashtables on Fedora 36.

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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-hashtables.

Install ghc-hashtables on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install ghc-hashtables using dnf by running the following command:

sudo dnf -y install ghc-hashtables

Install ghc-hashtables on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install ghc-hashtables using yum by running the following command:

sudo yum -y install ghc-hashtables

How To Uninstall ghc-hashtables on Fedora 36

To uninstall only the ghc-hashtables package we can use the following command:

sudo dnf remove ghc-hashtables

ghc-hashtables Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/64
/usr/lib/.build-id/64/0aa703b4ed456f89aa98206c0bbdb42c9c0f13
/usr/lib64/libHShashtables-1.2.4.1-5AHcSR8wMg4D6Du2pRhHXM-ghc8.10.5.so
/usr/share/licenses/ghc-hashtables
/usr/share/licenses/ghc-hashtables/LICENSE

References

Summary

In this tutorial we learn how to install ghc-hashtables on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).