How To Install ghc-lens on Fedora 36
Introduction
In this tutorial we learn how to install ghc-lens
on Fedora 36.
What is ghc-lens
This package comes “Batteries Included” with many useful lenses for the types commonly used from the Haskell Platform, and with tools for automatically generating lenses and isomorphisms for user-supplied data types. The combinators in ‘Control.Lens’ provide a highly generic toolbox for composing families of getters, folds, isomorphisms, traversals, setters and lenses and their indexed variants. An overview, with a large number of examples can be found in the README at https
We can use yum
or dnf
to install ghc-lens
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-lens.
Install ghc-lens 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
using dnf
by running the following command:
sudo dnf -y install ghc-lens
Install ghc-lens 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
using yum
by running the following command:
sudo yum -y install ghc-lens
How To Uninstall ghc-lens on Fedora 36
To uninstall only the ghc-lens
package we can use the following command:
sudo dnf remove ghc-lens
ghc-lens Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/62
/usr/lib/.build-id/62/b391ee10dd3fde77e7437b0abfea2ed6fe7768
/usr/lib64/libHSlens-4.19.2-B5JrUApoRtR7aW7ZHMXcv-ghc8.10.5.so
/usr/share/licenses/ghc-lens
/usr/share/licenses/ghc-lens/LICENSE
References
Summary
In this tutorial we learn how to install ghc-lens
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).