How To Install ghc-indexed-traversable on Fedora 36

In this tutorial we learn how to install ghc-indexed-traversable in Fedora 36. ghc-indexed-traversable is FunctorWithIndex, FoldableWithIndex, TraversableWithIndex

Introduction

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

What is ghc-indexed-traversable

This package provides three useful generalizations ‘class Functor f => FunctorWithIndex i f | f -> i’ (imap) ‘class Foldable f => FoldableWithIndex i f | f -> i’ (ifoldMap) ‘class (FunctorWithIndex i t, FoldableWithIndex i t, Traversable t) => TraversableWithIndex i t | t -> i’ (itraverse) This package contains instances for types in GHC boot libraries. For some additional instances see indexed-traversable-instances. The keys package provides similar functionality, but uses (associated) ‘TypeFamilies’ instead of ‘FunctionalDependencies’.

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

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

sudo dnf -y install ghc-indexed-traversable

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

sudo yum -y install ghc-indexed-traversable

How To Uninstall ghc-indexed-traversable on Fedora 36

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

sudo dnf remove ghc-indexed-traversable

ghc-indexed-traversable Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/595b5150023d22347b971fec244fcf6f0b3eec
/usr/lib64/libHSindexed-traversable-0.1.1-1Z2GfU1EWlL3ZzMnGNHsA4-ghc8.10.5.so
/usr/share/licenses/ghc-indexed-traversable
/usr/share/licenses/ghc-indexed-traversable/LICENSE

References

Summary

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