How To Install ghc-deepseq-generics on CentOS 7

In this tutorial we learn how to install ghc-deepseq-generics on CentOS 7. ghc-deepseq-generics is Generics-based normal form reduction for deepseq

Introduction

In this tutorial we learn how to install ghc-deepseq-generics on CentOS 7.

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 for 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 merged into ‘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 CentOS 7. 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 CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install ghc-deepseq-generics using yum by running the following command:

sudo yum -y install ghc-deepseq-generics

Install ghc-deepseq-generics on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install ghc-deepseq-generics using dnf by running the following command:

sudo dnf -y install ghc-deepseq-generics

How To Uninstall ghc-deepseq-generics on CentOS 7

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

sudo dnf remove ghc-deepseq-generics

References

Summary

In this tutorial we learn how to install ghc-deepseq-generics on CentOS 7 using yum and dnf.