How To Install ghc-base-compat-batteries on Fedora 36

In this tutorial we learn how to install ghc-base-compat-batteries in Fedora 36. ghc-base-compat-batteries is Base-compat with extra batteries

Introduction

In this tutorial we learn how to install ghc-base-compat-batteries on Fedora 36.

What is ghc-base-compat-batteries

Provides functions available in later versions of ‘base’ to a wider range of compilers, without requiring you to use CPP pragmas in your code. the suffix ‘.Repl.Batteries’, which are distinct from anything in depends on compatibility packages (such as ‘semigroups’) to offer a wider support window than ‘base-compat’, which has no dependencies. Most of the See ‘’ for a more comprehensive list of differences between ‘base-compat’ and ‘base-compat-batteries’.

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

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

sudo dnf -y install ghc-base-compat-batteries

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

sudo yum -y install ghc-base-compat-batteries

How To Uninstall ghc-base-compat-batteries on Fedora 36

To uninstall only the ghc-base-compat-batteries package we can use the following command:

sudo dnf remove ghc-base-compat-batteries

ghc-base-compat-batteries Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/8d
/usr/lib/.build-id/8d/50edb15dca46ed4710d82954f8c8ba7ab978dd
/usr/lib64/libHSbase-compat-batteries-0.11.2-2F6TYu16flP2TXbhSWs8aA-ghc8.10.5.so
/usr/share/licenses/ghc-base-compat-batteries
/usr/share/licenses/ghc-base-compat-batteries/LICENSE

References

Summary

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