How To Install ghc-reflection on CentOS 7

In this tutorial we learn how to install ghc-reflection on CentOS 7. ghc-reflection is Reifies arbitrary terms into types that can be reflected back into

Introduction

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

What is ghc-reflection

This package provides an implementation of the ideas presented in the paper “Functional Pearl Kiselyov and Chung-chieh Shan. However, the API has been streamlined to improve performance. The original paper can be obtained from <http For a summary of the approach taken by this library, along with more motivating examples, see Austin Seipp’s tutorial at <https

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

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

sudo yum -y install ghc-reflection

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

sudo dnf -y install ghc-reflection

How To Uninstall ghc-reflection on CentOS 7

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

sudo dnf remove ghc-reflection

References

Summary

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