How To Install ghc-foundation on Fedora 36

In this tutorial we learn how to install ghc-foundation in Fedora 36. ghc-foundation is Alternative prelude with batteries and no dependencies

Introduction

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

What is ghc-foundation

A custom prelude with no dependencies apart from base. This package has the following goals * provide a base like sets of modules that provide a consistent set of features and bugfixes across multiple versions of GHC (unlike base). * provide a better and more efficient prelude than base’s prelude. * be self-sufficient * provide better data-types * Better numerical classes that better represent mathematical thing (No more all-in-one Num). * Better I/O system with less Lazy IO * Usual partial functions distinguished through type system.

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

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

sudo dnf -y install ghc-foundation

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

sudo yum -y install ghc-foundation

How To Uninstall ghc-foundation on Fedora 36

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

sudo dnf remove ghc-foundation

ghc-foundation Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/62
/usr/lib/.build-id/62/285c81c6534b7d0979da2bc3e6929e2ef4e626
/usr/lib64/libHSfoundation-0.0.26.1-17rXXvohT1J2w8HnJBVKoj-ghc8.10.5.so
/usr/share/licenses/ghc-foundation
/usr/share/licenses/ghc-foundation/LICENSE

References

Summary

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