How To Install ghc-semigroupoids on Fedora 36

In this tutorial we learn how to install ghc-semigroupoids in Fedora 36. ghc-semigroupoids is Semigroupoids

Introduction

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

What is ghc-semigroupoids

Provides a wide array of (semi)groupoids and operations for working with them. A ‘Semigroupoid’ is a ‘Category’ without the requirement of identity arrows for every object in the category. A ‘Category’ is any ‘Semigroupoid’ for which the Yoneda lemma holds. When working with comonads you often have the ‘<*>’ portion of an ‘Applicative’, but not the ‘pure’. This was captured in Uustalu and Vene’s “Essence of Dataflow Programming” in the form of the ‘ComonadZip’ class in the days before ‘Applicative’. Apply provides a weaker invariant, but for the comonads used for data flow programming (found in the streams package), this invariant is preserved. Applicative function composition forms a semigroupoid.

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

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

sudo dnf -y install ghc-semigroupoids

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

sudo yum -y install ghc-semigroupoids

How To Uninstall ghc-semigroupoids on Fedora 36

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

sudo dnf remove ghc-semigroupoids

ghc-semigroupoids Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/ff
/usr/lib/.build-id/ff/6720ead22a6854c20efdbb4a5593147d7fba08
/usr/lib64/libHSsemigroupoids-5.3.5-CLxUBkiNQdk7A7S23nWGk1-ghc8.10.5.so
/usr/share/licenses/ghc-semigroupoids
/usr/share/licenses/ghc-semigroupoids/LICENSE

References

Summary

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