How To Install ghc-listsafe on Fedora 36

In this tutorial we learn how to install ghc-listsafe in Fedora 36. ghc-listsafe is Safe wrappers for partial list functions, supporting MonadThrow

Introduction

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

What is ghc-listsafe

Data.List includes a handful of partial functions that throw uncatchable exceptions when given empty lists. This package provides safe alternatives for such functions based on MonadThrow which can provide a variety of failure cases

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

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

sudo dnf -y install ghc-listsafe

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

sudo yum -y install ghc-listsafe

How To Uninstall ghc-listsafe on Fedora 36

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

sudo dnf remove ghc-listsafe

ghc-listsafe Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/79
/usr/lib/.build-id/79/f020ebc26f3abf959050166ee04bcc0fd97de9
/usr/lib64/libHSlistsafe-0.1.0.1-DBTxmRQukOTCGpzvBz89G8-ghc8.10.5.so
/usr/share/licenses/ghc-listsafe
/usr/share/licenses/ghc-listsafe/LICENSE.md

References

Summary

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