How To Install ghc-annotated-wl-pprint on Fedora 36

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

Introduction

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

What is ghc-annotated-wl-pprint

This is a modified version of wl-pprint, which was based on Wadler’s paper “A Prettier Printer”. See the haddocks for full info. This version allows the library user to annotate the text with semantic information, which can later be rendered in a variety of ways.

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

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

sudo dnf -y install ghc-annotated-wl-pprint

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

sudo yum -y install ghc-annotated-wl-pprint

How To Uninstall ghc-annotated-wl-pprint on Fedora 36

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

sudo dnf remove ghc-annotated-wl-pprint

ghc-annotated-wl-pprint Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/06
/usr/lib/.build-id/06/69e5669afc777663dbaf570439af4a4280a851
/usr/lib64/libHSannotated-wl-pprint-0.7.0-LfvIEL94sD0ER9mdrVDak7-ghc8.10.5.so
/usr/share/licenses/ghc-annotated-wl-pprint
/usr/share/licenses/ghc-annotated-wl-pprint/LICENSE

References

Summary

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