How To Install ghc-retry on Fedora 36

In this tutorial we learn how to install ghc-retry in Fedora 36. ghc-retry is Retry combinators for monadic actions that may fail

Introduction

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

What is ghc-retry

This package exposes combinators that can wrap arbitrary monadic actions. They run the action and potentially retry running it with some configurable delay for a configurable number of times. The purpose is to make it easier to work with IO and especially network IO actions that often experience temporary failure and warrant retrying of the original action. For example, a database query may time out for a while, in which case we should hang back for a bit and retry the query instead of simply raising an exception.

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

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

sudo dnf -y install ghc-retry

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

sudo yum -y install ghc-retry

How To Uninstall ghc-retry on Fedora 36

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

sudo dnf remove ghc-retry

ghc-retry Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/37
/usr/lib/.build-id/37/729083a72e52cd9ca63b93ec6a06496a189c86
/usr/lib64/libHSretry-0.8.1.2-FEk8Q99NJuDN0PT0D2WoL-ghc8.10.5.so
/usr/share/licenses/ghc-retry
/usr/share/licenses/ghc-retry/LICENSE

References

Summary

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