How To Install ghc-shakespeare on CentOS 7

In this tutorial we learn how to install ghc-shakespeare on CentOS 7. ghc-shakespeare is Toolkit for compile-time interpolated templates

Introduction

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

What is ghc-shakespeare

Shakespeare is a family of type-safe, efficient template languages. Shakespeare templates are expanded at compile-time, ensuring that all interpolated variables are in scope. Variables are interpolated according to their type through a typeclass. Shakespeare templates can be used inline with a quasi-quoter or in an external file. See the documentation at <http details.

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

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

sudo yum -y install ghc-shakespeare

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

sudo dnf -y install ghc-shakespeare

How To Uninstall ghc-shakespeare on CentOS 7

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

sudo dnf remove ghc-shakespeare

References

Summary

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