How To Install ghc-wl-pprint on Fedora 36

In this tutorial we learn how to install ghc-wl-pprint in Fedora 36. ghc-wl-pprint is The Wadler/Leijen Pretty Printer

Introduction

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

What is ghc-wl-pprint

This is a pretty printing library based on Wadler’s paper “A Prettier Printer”. See the haddocks for full info. This version allows the library user to declare overlapping instances of the ‘Pretty’ class.

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

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

sudo dnf -y install ghc-wl-pprint

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

sudo yum -y install ghc-wl-pprint

How To Uninstall ghc-wl-pprint on Fedora 36

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

sudo dnf remove ghc-wl-pprint

ghc-wl-pprint Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/af
/usr/lib/.build-id/af/52db10261f962e423ab00fd1ff5b0590943dad
/usr/lib64/libHSwl-pprint-1.2.1-J3YGG4rSqC24znXvPeyyY9-ghc8.10.5.so
/usr/share/licenses/ghc-wl-pprint
/usr/share/licenses/ghc-wl-pprint/LICENSE

References

Summary

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