How To Install ghc-pretty on Fedora 36

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

Introduction

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

What is ghc-pretty

This package provides the Haskell pretty library.

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

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

sudo dnf -y install ghc-pretty

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

sudo yum -y install ghc-pretty

How To Uninstall ghc-pretty on Fedora 36

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

sudo dnf remove ghc-pretty

ghc-pretty Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/22
/usr/lib/.build-id/22/9c6aa06ffdf3f499468f1defa23492c7d3db5d
/usr/lib64/libHSpretty-1.1.3.6-ghc8.10.5.so
/usr/share/licenses/ghc-pretty
/usr/share/licenses/ghc-pretty/LICENSE

References

Summary

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