How To Install ghc-transformers-compat on CentOS 7

In this tutorial we learn how to install ghc-transformers-compat on CentOS 7. ghc-transformers-compat is Compatibility shim exposing the new types from newer transformers

Introduction

In this tutorial we learn how to install ghc-transformers-compat on CentOS 7.

What is ghc-transformers-compat

This package includes backported versions of types that were added to transformers in transformers 0.3 and 0.4 for users who need strict transformers 0.2 or 0.3 compatibility to run on old versions of the platform, but also need those types.

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

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

sudo yum -y install ghc-transformers-compat

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

sudo dnf -y install ghc-transformers-compat

How To Uninstall ghc-transformers-compat on CentOS 7

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

sudo dnf remove ghc-transformers-compat

References

Summary

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