How To Install ghc-basic-prelude on Fedora 36
Introduction
In this tutorial we learn how to install ghc-basic-prelude
on Fedora 36.
What is ghc-basic-prelude
The premise of basic-prelude is that there are a lot of very commonly desired features missing from the standard Prelude, such as commonly used operators (<$> and >=>, for instance) and imports for common datatypes (e.g., ByteString and Vector). At the same time, there are lots of other components which are more debatable, such as providing polymorphic versions of common functions. So basic-prelude is intended to give a common foundation for a number of alternate preludes. The package provides two modules provides the common ground for other preludes to build on top of, while BasicPrelude exports CorePrelude together with commonly used list functions to provide a drop-in replacement for the standard Prelude. Users wishing to have an improved Prelude can use BasicPrelude. Developers wishing to create a new prelude should use CorePrelude.
We can use yum
or dnf
to install ghc-basic-prelude
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-basic-prelude.
Install ghc-basic-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-basic-prelude
using dnf
by running the following command:
sudo dnf -y install ghc-basic-prelude
Install ghc-basic-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-basic-prelude
using yum
by running the following command:
sudo yum -y install ghc-basic-prelude
How To Uninstall ghc-basic-prelude on Fedora 36
To uninstall only the ghc-basic-prelude
package we can use the following command:
sudo dnf remove ghc-basic-prelude
ghc-basic-prelude Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/33
/usr/lib/.build-id/33/26926ec9997da3360ca3bbe8d4a452e801d274
/usr/lib64/libHSbasic-prelude-0.7.0-CaexTuq5vhg8JDVa1AkwwN-ghc8.10.5.so
/usr/share/licenses/ghc-basic-prelude
/usr/share/licenses/ghc-basic-prelude/LICENSE
References
Summary
In this tutorial we learn how to install ghc-basic-prelude
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).