How To Install ghc-threads on Fedora 36

In this tutorial we learn how to install ghc-threads in Fedora 36. ghc-threads is Fork threads and wait for their result

Introduction

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

What is ghc-threads

This package provides functions to fork threads and wait for their result, whether it’s an exception or a normal value. Besides waiting for the termination of a single thread this packages also provides functions to wait for a group of threads to terminate. This package is similar to the ’threadmanager’, ‘async’ and ‘spawn’ packages. The advantages of this package are * Simpler API. * More efficient in both space and time. * No space-leak when forking a large number of threads. * Correct handling of asynchronous exceptions. * GHC specific functionality like ‘forkOn’ and ‘forkIOWithUnmask’.

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

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

sudo dnf -y install ghc-threads

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

sudo yum -y install ghc-threads

How To Uninstall ghc-threads on Fedora 36

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

sudo dnf remove ghc-threads

ghc-threads Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/81c6061dfc0f97f5a80f6b870c65e681e78274
/usr/lib64/libHSthreads-0.5.1.6-FpCxuZIfgouIk1snj4LQff-ghc8.10.5.so
/usr/share/licenses/ghc-threads
/usr/share/licenses/ghc-threads/LICENSE

References

Summary

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