How To Install ghc-extra on Fedora 36
Introduction
In this tutorial we learn how to install ghc-extra
on Fedora 36.
What is ghc-extra
A library of extra functions for the standard Haskell libraries. Most functions are simple additions, filling out missing functionality. A few functions are available in later versions of GHC, but this package makes them available back to GHC 7.2. The module “Extra” documents all functions provided by this library. Modules such as “Data.List.Extra” provide extra functions over “Data.List” and also reexport “Data.List”. Users are recommended to replace “Data.List” imports with “Data.List.Extra” if they need the extra functionality.
We can use yum
or dnf
to install ghc-extra
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-extra.
Install ghc-extra 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-extra
using dnf
by running the following command:
sudo dnf -y install ghc-extra
Install ghc-extra 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-extra
using yum
by running the following command:
sudo yum -y install ghc-extra
How To Uninstall ghc-extra on Fedora 36
To uninstall only the ghc-extra
package we can use the following command:
sudo dnf remove ghc-extra
ghc-extra Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/d5a4ce30a0626b754d268e4545985478e6df74
/usr/lib64/libHSextra-1.7.9-3Kr7h5ascY8CwW2FETc3JI-ghc8.10.5.so
/usr/share/licenses/ghc-extra
/usr/share/licenses/ghc-extra/LICENSE
References
Summary
In this tutorial we learn how to install ghc-extra
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).