How To Install ghc-newtype-generics on Fedora 36

In this tutorial we learn how to install ghc-newtype-generics in Fedora 36. ghc-newtype-generics is Haskell newtype-generics library

Introduction

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

What is ghc-newtype-generics

This package provides the Haskell newtype-generics library.

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

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

sudo dnf -y install ghc-newtype-generics

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

sudo yum -y install ghc-newtype-generics

How To Uninstall ghc-newtype-generics on Fedora 36

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

sudo dnf remove ghc-newtype-generics

ghc-newtype-generics Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/61
/usr/lib/.build-id/61/cec9ee925bb58b29ff139fa1eabc942ccd97d5
/usr/lib64/libHSnewtype-generics-0.5.3-IN2e6jmvg7KSPChSTLYmY-ghc8.10.5.so
/usr/share/licenses/ghc-newtype-generics
/usr/share/licenses/ghc-newtype-generics/LICENSE

References

Summary

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