How To Install ghc-lens-family-core on Fedora 36

In this tutorial we learn how to install ghc-lens-family-core in Fedora 36. ghc-lens-family-core is Haskell 2022 Lens Families

Introduction

In this tutorial we learn how to install ghc-lens-family-core on Fedora 36.

What is ghc-lens-family-core

This package provides first class(†) functional references in Van Laarhoven style supporting the following optics * Lenses (view, over) * Traversals (toListOf, matching, over) * Setters (over) * Grates (zipWithOf, under, review) * Resetters (under) * Adapters (view, review) * Grids (toListOf, over / under, review) * Prisms (matching, over / under, review) * Getters (view) * Folders (toListOf) * Reviewers (review) (†) For optimal first-class support use the ’lens-family’ package with rank 2 / rank N polymorphism. “Lens.Family.Clone” allows for first-class support of lenses and traversals for those who cannot support rank 2 polymorphism.

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

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

sudo dnf -y install ghc-lens-family-core

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

sudo yum -y install ghc-lens-family-core

How To Uninstall ghc-lens-family-core on Fedora 36

To uninstall only the ghc-lens-family-core package we can use the following command:

sudo dnf remove ghc-lens-family-core

ghc-lens-family-core Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/9cd2f65fb40815a4b8c36fb4aee4671c6eb48c
/usr/lib64/libHSlens-family-core-2.0.0-892iO4KA9JuKFfdIrAf2Sd-ghc8.10.5.so
/usr/share/licenses/ghc-lens-family-core
/usr/share/licenses/ghc-lens-family-core/LICENSE

References

Summary

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