How To Install ghc-mtl on Fedora 36

In this tutorial we learn how to install ghc-mtl in Fedora 36. ghc-mtl is Haskell mtl library

Introduction

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

What is ghc-mtl

This package provides the Haskell mtl library.

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

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

sudo dnf -y install ghc-mtl

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

sudo yum -y install ghc-mtl

How To Uninstall ghc-mtl on Fedora 36

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

sudo dnf remove ghc-mtl

ghc-mtl Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/c4
/usr/lib/.build-id/c4/d27dc1b527d3095ebce81ea886e966e4d19a8e
/usr/lib64/libHSmtl-2.2.2-ghc8.10.5.so
/usr/share/licenses/ghc-mtl
/usr/share/licenses/ghc-mtl/LICENSE

References

Summary

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