How To Install ghc-resourcet on Fedora 36

In this tutorial we learn how to install ghc-resourcet in Fedora 36. ghc-resourcet is Deterministic allocation and freeing of scarce resources

Introduction

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

What is ghc-resourcet

Allocate resources which are guaranteed to be released. All register cleanup actions live in the IO monad, not the main monad. This allows both more efficient code, and for monads to be transformed.

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

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

sudo dnf -y install ghc-resourcet

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

sudo yum -y install ghc-resourcet

How To Uninstall ghc-resourcet on Fedora 36

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

sudo dnf remove ghc-resourcet

ghc-resourcet Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/57baadd5c7a223457372c4ade84e1f6c5daa4e
/usr/lib64/libHSresourcet-1.2.4.2-1xyKjTB1JdZ8QLwCpdlSJW-ghc8.10.5.so
/usr/share/licenses/ghc-resourcet
/usr/share/licenses/ghc-resourcet/LICENSE

References

Summary

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