How To Install ghc-explicit-exception on Fedora 36
Introduction
In this tutorial we learn how to install ghc-explicit-exception
on Fedora 36.
What is ghc-explicit-exception
Synchronous and Asynchronous exceptions which are explicit in the type signature. The first ones are very similar to ‘Either’ and ‘Control.Monad.Error.ErrorT’. The second ones are used for ‘System.IO.readFile’ and ‘System.IO.hGetContents’. This package is a proposal for improved exception handling in Haskell. It strictly separates between handling of exceptional situations (file not found, invalid user input, see <http (division by zero, index out of range, see <http called “exception handling”, whereas handling of errors is better known as “debugging”.
We can use yum
or dnf
to install ghc-explicit-exception
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-explicit-exception.
Install ghc-explicit-exception 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-explicit-exception
using dnf
by running the following command:
sudo dnf -y install ghc-explicit-exception
Install ghc-explicit-exception 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-explicit-exception
using yum
by running the following command:
sudo yum -y install ghc-explicit-exception
How To Uninstall ghc-explicit-exception on Fedora 36
To uninstall only the ghc-explicit-exception
package we can use the following command:
sudo dnf remove ghc-explicit-exception
ghc-explicit-exception Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/80
/usr/lib/.build-id/80/cd53e107946462b50e73a286eda41ae48aed43
/usr/lib64/libHSexplicit-exception-0.1.10-6xhZF4JrPLdKJIZts80Q3z-ghc8.10.5.so
/usr/share/licenses/ghc-explicit-exception
/usr/share/licenses/ghc-explicit-exception/LICENSE
References
Summary
In this tutorial we learn how to install ghc-explicit-exception
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).