How To Install ghc-async on Fedora 36

In this tutorial we learn how to install ghc-async in Fedora 36. ghc-async is Run IO operations asynchronously and wait for their results

Introduction

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

What is ghc-async

This package provides a higher-level interface over threads, in which an ‘Async a’ is a concurrent thread that will eventually deliver a value of type ‘a’. The package provides ways to create “Async” computations, wait for their results, and cancel them. Using ‘Async’ is safer than using threads in two ways * When waiting for a thread to return a result, if the thread dies with an exception then the caller must either re-throw the exception (‘wait’) or handle it (‘waitCatch’); the exception cannot be ignored. * The API makes it possible to build a tree of threads that are automatically killed when their parent dies (see ‘withAsync’).

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

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

sudo dnf -y install ghc-async

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

sudo yum -y install ghc-async

How To Uninstall ghc-async on Fedora 36

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

sudo dnf remove ghc-async

ghc-async Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/23
/usr/lib/.build-id/23/bff18d28ff829935bed3a3d68a0ce9e217438b
/usr/lib64/libHSasync-2.2.3-6S87sLLKjsSJi74xO4UtYU-ghc8.10.5.so
/usr/share/licenses/ghc-async
/usr/share/licenses/ghc-async/LICENSE

References

Summary

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