How To Install ghc-monad-journal on Fedora 36

In this tutorial we learn how to install ghc-monad-journal in Fedora 36. ghc-monad-journal is Pure logger typeclass and monad transformer

Introduction

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

What is ghc-monad-journal

This package provides a typeclass for logging in pure code, or more generally, in any kind of context. You can do whatever you want with logs, especially get them, clear them or even sink them through ‘IO’ if you’re logging in ‘(MonadIO m) => m’.

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

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

sudo dnf -y install ghc-monad-journal

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

sudo yum -y install ghc-monad-journal

How To Uninstall ghc-monad-journal on Fedora 36

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

sudo dnf remove ghc-monad-journal

ghc-monad-journal Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/8c
/usr/lib/.build-id/8c/5cd42354de54e5e241c694af3ac0be03cd96c5
/usr/lib64/libHSmonad-journal-0.8.1-G2uz2cjGAgSDAzMcJKxQSp-ghc8.10.5.so
/usr/share/licenses/ghc-monad-journal
/usr/share/licenses/ghc-monad-journal/LICENSE

References

Summary

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