How To Install ghc-deepseq-generics on Fedora 36

In this tutorial we learn how to install ghc-deepseq-generics in Fedora 36. ghc-deepseq-generics is Generics-based normal form reduction for deepseq

Introduction

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

What is ghc-deepseq-generics

This package provides a “GHC.Generics”-based ‘Control.DeepSeq.Generics.genericRnf’ function which can be used for providing a ‘rnf’ implementation. See the documentation for the ‘genericRnf’ function in the “Control.DeepSeq.Generics” module to get started. The original idea was pioneered in the ‘generic-deepseq’ package (see <http more information). This package differs from the ‘generic-deepseq’ package by working in combination with the existing ‘deepseq’ package as opposed to defining a conflicting drop-in replacement for ‘deepseq’s ‘Control.Deepseq’ module. Note ‘deepseq-1.4.0.0’. This package is now still useful for writing code that’s also compatible with older ‘deepseq’ versions not yet providing “GHC.Generics”-support.

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

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

sudo dnf -y install ghc-deepseq-generics

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

sudo yum -y install ghc-deepseq-generics

How To Uninstall ghc-deepseq-generics on Fedora 36

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

sudo dnf remove ghc-deepseq-generics

ghc-deepseq-generics Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/70696330fef24894fd9c61b54b21e7580735af
/usr/lib64/libHSdeepseq-generics-0.2.0.0-IC5Ecus9LBG2ImZg18Gi1i-ghc8.10.5.so
/usr/share/licenses/ghc-deepseq-generics
/usr/share/licenses/ghc-deepseq-generics/LICENSE

References

Summary

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