How To Install ghc-microlens-th on Fedora 36

In this tutorial we learn how to install ghc-microlens-th in Fedora 36. ghc-microlens-th is Automatic generation of record lenses for microlens

Introduction

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

What is ghc-microlens-th

This package lets you automatically generate lenses for data types; code was extracted from the lens package, and therefore generated lenses are fully compatible with ones generated by lens (and can be used both from lens and microlens). This package is a part of the family; see the readme .

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

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

sudo dnf -y install ghc-microlens-th

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

sudo yum -y install ghc-microlens-th

How To Uninstall ghc-microlens-th on Fedora 36

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

sudo dnf remove ghc-microlens-th

ghc-microlens-th Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/28
/usr/lib/.build-id/28/64f2e2b8069a493fbe2915c8b2494be25e9f12
/usr/lib64/libHSmicrolens-th-0.4.3.10-1sCsKmR0pY7ILCioHJIvje-ghc8.10.5.so
/usr/share/licenses/ghc-microlens-th
/usr/share/licenses/ghc-microlens-th/LICENSE

References

Summary

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