How To Install ghc-hashable on Fedora 36

In this tutorial we learn how to install ghc-hashable in Fedora 36. ghc-hashable is A class for types that can be converted to a hash value

Introduction

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

What is ghc-hashable

This package defines a class, ‘Hashable’, for types that can be converted to a hash value. This class exists for the benefit of hashing-based data structures. The package provides instances for basic types and a way to combine hash values.

We can use yum or dnf to install ghc-hashable on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-hashable.

Install ghc-hashable 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-hashable using dnf by running the following command:

sudo dnf -y install ghc-hashable

Install ghc-hashable 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-hashable using yum by running the following command:

sudo yum -y install ghc-hashable

How To Uninstall ghc-hashable on Fedora 36

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

sudo dnf remove ghc-hashable

ghc-hashable Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/57
/usr/lib/.build-id/57/c6395c3790fc5f80654c05dae2bd34c4f96e8f
/usr/lib64/libHShashable-1.3.0.0-AC24voAet8VD7h7fDAkjdM-ghc8.10.5.so
/usr/share/licenses/ghc-hashable
/usr/share/licenses/ghc-hashable/LICENSE

References

Summary

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