How To Install ghc-pretty-show on Fedora 36
Introduction
In this tutorial we learn how to install ghc-pretty-show
on Fedora 36.
What is ghc-pretty-show
We provide a library and an executable for working with derived ‘Show’ instances. By using the library, we can parse derived ‘Show’ instances into a generic data structure. The ‘ppsh’ tool uses the library to produce human-readable versions of ‘Show’ instances, which can be quite handy for debugging Haskell programs. We can also render complex generic values into an interactive Html page, for easier examination.
We can use yum
or dnf
to install ghc-pretty-show
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-pretty-show.
Install ghc-pretty-show 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-show
using dnf
by running the following command:
sudo dnf -y install ghc-pretty-show
Install ghc-pretty-show 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-show
using yum
by running the following command:
sudo yum -y install ghc-pretty-show
How To Uninstall ghc-pretty-show on Fedora 36
To uninstall only the ghc-pretty-show
package we can use the following command:
sudo dnf remove ghc-pretty-show
ghc-pretty-show Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/48ca3117af3c3898af9b5ca5c62dc0f1a5792e
/usr/lib64/libHSpretty-show-1.10-jI5AqYpLoz98dMARTaePi-ghc8.10.5.so
/usr/share/licenses/ghc-pretty-show
/usr/share/licenses/ghc-pretty-show/LICENSE
/usr/share/pretty-show-1.10
/usr/share/pretty-show-1.10/style
/usr/share/pretty-show-1.10/style/jquery.js
/usr/share/pretty-show-1.10/style/pretty-show.css
/usr/share/pretty-show-1.10/style/pretty-show.js
References
Summary
In this tutorial we learn how to install ghc-pretty-show
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).