How To Install ghc-exceptions on Fedora 36

In this tutorial we learn how to install ghc-exceptions in Fedora 36. ghc-exceptions is Haskell exceptions library

Introduction

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

What is ghc-exceptions

This package provides the Haskell exceptions library.

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

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

sudo dnf -y install ghc-exceptions

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

sudo yum -y install ghc-exceptions

How To Uninstall ghc-exceptions on Fedora 36

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

sudo dnf remove ghc-exceptions

ghc-exceptions Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/71
/usr/lib/.build-id/71/e10d6c0225904d60de8ebeac24e84b08bd1c0c
/usr/lib64/libHSexceptions-0.10.4-ghc8.10.5.so
/usr/share/licenses/ghc-exceptions
/usr/share/licenses/ghc-exceptions/LICENSE

References

Summary

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