How To Install ghc-th-lift on Fedora 36

In this tutorial we learn how to install ghc-th-lift in Fedora 36. ghc-th-lift is Derive Template Haskell’s Lift class for datatypes

Introduction

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

What is ghc-th-lift

Derive Template Haskell’s ‘Lift’ class for datatypes using ‘TemplateHaskell’. The functionality in this package has largely been subsumed by the ‘DeriveLift’ language extension, which is available in GHC 8.0 and later versions. This package can still be useful as a uniform way to derive ‘Lift’ instances that is backwards-compatible with older GHCs. The following libraries are related * The <https provides instances for ’template-haskell’ syntax types. * The <http package provides ‘Lift’ instances for types in ‘base’, ’text’, ‘bytestring’, ‘vector’, etc. Some of these instances are only provided for old versions of their respective libraries, as the same ‘Lift’ instances are also present upstream on newer versions.

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

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

sudo dnf -y install ghc-th-lift

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

sudo yum -y install ghc-th-lift

How To Uninstall ghc-th-lift on Fedora 36

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

sudo dnf remove ghc-th-lift

ghc-th-lift Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/96a5ba9e3728dc482237c14777258dddab2419
/usr/lib64/libHSth-lift-0.8.2-A94jWiBJfaQF1v2Vq9YgsH-ghc8.10.5.so
/usr/share/licenses/ghc-th-lift
/usr/share/licenses/ghc-th-lift/BSD3
/usr/share/licenses/ghc-th-lift/COPYING
/usr/share/licenses/ghc-th-lift/GPL-2

References

Summary

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