How To Install ghc-th-compat on Fedora 36

In this tutorial we learn how to install ghc-th-compat in Fedora 36. ghc-th-compat is Backward- (and forward-)compatible Quote and Code types

Introduction

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

What is ghc-th-compat

This package defines a “Language.Haskell.TH.Syntax.Compat” module, which backports the ‘Quote’ and ‘Code’ types to work across a wide range of ’template-haskell’ versions. On recent versions of ’template-haskell’ (2.17.0.0 or later), this module simply reexports ‘Quote’ and ‘Code’ from “Language.Haskell.TH.Syntax”. Refer to the Haddocks for “Language.Haskell.TH.Syntax.Compat” for examples of how to use this module.

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

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

sudo dnf -y install ghc-th-compat

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

sudo yum -y install ghc-th-compat

How To Uninstall ghc-th-compat on Fedora 36

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

sudo dnf remove ghc-th-compat

ghc-th-compat Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/03
/usr/lib/.build-id/03/4527cf31d97336e1ef0cf89c06b245512ab924
/usr/lib64/libHSth-compat-0.1.2-ByZxBcpUF66G8zRwaSaAGi-ghc8.10.5.so
/usr/share/licenses/ghc-th-compat
/usr/share/licenses/ghc-th-compat/LICENSE

References

Summary

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