How To Install ghc-STMonadTrans on Fedora 36

In this tutorial we learn how to install ghc-STMonadTrans in Fedora 36. ghc-STMonadTrans is A monad transformer version of the ST monad

Introduction

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

What is ghc-STMonadTrans

A monad transformer version of the ST monad. This monad transformer should not be used with monads that can contain multiple answers, like the list monad. The reason is that the state token will be duplicated across the different answers and this causes Bad Things to happen (such as loss of referential transparency). Safe monads include the monads State, Reader, Writer, Maybe and combinations of their corresponding monad transformers.

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

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

sudo dnf -y install ghc-STMonadTrans

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

sudo yum -y install ghc-STMonadTrans

How To Uninstall ghc-STMonadTrans on Fedora 36

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

sudo dnf remove ghc-STMonadTrans

ghc-STMonadTrans Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/86
/usr/lib/.build-id/86/1761f1f1f83046b4ca95e9da906dffbeb23b31
/usr/lib64/libHSSTMonadTrans-0.4.5-FRo38KV3dI6B45rA5oCZZj-ghc8.10.5.so
/usr/share/licenses/ghc-STMonadTrans
/usr/share/licenses/ghc-STMonadTrans/LICENSE

References

Summary

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