How To Install ghc-fclabels on Fedora 36

In this tutorial we learn how to install ghc-fclabels in Fedora 36. ghc-fclabels is First class accessor labels implemented as lenses

Introduction

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

What is ghc-fclabels

This package provides first class labels that can act as bidirectional record fields. The labels can be derived automatically using Template Haskell which means you don’t have to write any boilerplate yourself. The labels are implemented as /lenses/ and are fully composable. Lenses can be used to /get/, /set/ and /modify/ parts of a data type in a consistent way.

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

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

sudo dnf -y install ghc-fclabels

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

sudo yum -y install ghc-fclabels

How To Uninstall ghc-fclabels on Fedora 36

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

sudo dnf remove ghc-fclabels

ghc-fclabels Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/9e
/usr/lib/.build-id/9e/5c3f41b6da072d5adeea0a8c960c2dd31b306f
/usr/lib64/libHSfclabels-2.0.5.1-4meLGRCx9IPGmqPlO7RM8A-ghc8.10.5.so
/usr/share/licenses/ghc-fclabels
/usr/share/licenses/ghc-fclabels/LICENSE

References

Summary

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