How To Install ghc-monad-control on Fedora 36

In this tutorial we learn how to install ghc-monad-control in Fedora 36. ghc-monad-control is Lift control operations through monad transformers

Introduction

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

What is ghc-monad-control

This package defines the type class ‘MonadBaseControl’, a subset of ‘MonadBase’ into which generic control operations such as ‘catch’ can be lifted from ‘IO’ or any other base monad. Instances are based on monad transformers in ‘MonadTransControl’, which includes all standard monad transformers in the ’transformers’ library except ‘ContT’. See the <http which uses ‘monad-control’ to lift ‘IO’ operations from the ‘base’ library (like ‘catch’ or ‘bracket’) into any monad that is an instance of ‘MonadBase’ or ‘MonadBaseControl’.

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

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

sudo dnf -y install ghc-monad-control

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

sudo yum -y install ghc-monad-control

How To Uninstall ghc-monad-control on Fedora 36

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

sudo dnf remove ghc-monad-control

ghc-monad-control Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/84
/usr/lib/.build-id/84/303e1f06838f24a2284c42419e27c748572265
/usr/lib64/libHSmonad-control-1.0.3-DubkgPj9ABO9WYQqT30e05-ghc8.10.5.so
/usr/share/licenses/ghc-monad-control
/usr/share/licenses/ghc-monad-control/LICENSE

References

Summary

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