How To Install ghc-base-prelude on Fedora 36

In this tutorial we learn how to install ghc-base-prelude in Fedora 36. ghc-base-prelude is The most complete prelude formed solely from the “base” package

Introduction

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

What is ghc-base-prelude

A library which aims to reexport all the non-conflicting and most general definitions from the “base” package. This includes APIs for applicatives, arrows, monoids, foldables, traversables, exceptions, generics, ST, MVars and STM. This package will never have any dependencies other than “base”. /Versioning policy/ The versioning policy of this package deviates from PVP in the sense that its exports in part are transitively determined by the version of “base”. Therefore it’s recommended for the users of “base-prelude” to specify the bounds of “base” as well.

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

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

sudo dnf -y install ghc-base-prelude

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

sudo yum -y install ghc-base-prelude

How To Uninstall ghc-base-prelude on Fedora 36

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

sudo dnf remove ghc-base-prelude

ghc-base-prelude Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/45
/usr/lib/.build-id/45/336c971f92d8067a81ca22835c361c39a40e46
/usr/lib64/libHSbase-prelude-1.4-6gvPEnwZlZz39pkAigtkjO-ghc8.10.5.so
/usr/share/licenses/ghc-base-prelude
/usr/share/licenses/ghc-base-prelude/LICENSE

References

Summary

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