How To Install ghc-microlens-platform on Fedora 36

In this tutorial we learn how to install ghc-microlens-platform in Fedora 36. ghc-microlens-platform is Microlens + all batteries included (best for apps)

Introduction

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

What is ghc-microlens-platform

This package exports a module which is the recommended starting point for using microlens if you aren’t trying to keep your dependencies minimal. By importing ‘Lens.Micro.Platform’ you get all functions and instances from microlens, microlens-th, microlens-mtl, microlens-ghc, as well as instances for ‘Vector’, ‘Text’, and ‘HashMap’. The minor and major versions of microlens-platform are incremented whenever the minor and major versions of any other microlens package are incremented, so you can depend on the exact version of microlens-platform without specifying the version of microlens (microlens-mtl, etc) you need.

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

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

sudo dnf -y install ghc-microlens-platform

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

sudo yum -y install ghc-microlens-platform

How To Uninstall ghc-microlens-platform on Fedora 36

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

sudo dnf remove ghc-microlens-platform

ghc-microlens-platform Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/75
/usr/lib/.build-id/75/a4eeb2a9c4c2a788a0fa0215c6051884936f0d
/usr/lib64/libHSmicrolens-platform-0.4.2-ErmVZxqyvwSHkuhtNK2g2V-ghc8.10.5.so
/usr/share/licenses/ghc-microlens-platform
/usr/share/licenses/ghc-microlens-platform/LICENSE

References

Summary

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