How To Install ghc-comonad on Fedora 36

In this tutorial we learn how to install ghc-comonad in Fedora 36. ghc-comonad is Categorical dual of monads

Introduction

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

What is ghc-comonad

This package provides comonads, the categorical dual of monads.

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

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

sudo dnf -y install ghc-comonad

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

sudo yum -y install ghc-comonad

How To Uninstall ghc-comonad on Fedora 36

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

sudo dnf remove ghc-comonad

ghc-comonad Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/620d924acd167a664cd7ffce12c039ec6860d3
/usr/lib64/libHScomonad-5.0.8-FAFrYXmUa1cKPARIj39bI0-ghc8.10.5.so
/usr/share/licenses/ghc-comonad
/usr/share/licenses/ghc-comonad/LICENSE

References

Summary

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