How To Install ghc-polyparse on CentOS 7

In this tutorial we learn how to install ghc-polyparse on CentOS 7. ghc-polyparse is A variety of alternative parser combinator libraries

Introduction

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

What is ghc-polyparse

A variety of alternative parser combinator libraries, including the original HuttonMeijer set. The Poly sets have features like good error reporting, arbitrary token type, running state, lazy parsing, and so on. Finally, Text.Parse is a proposed replacement for the standard Read class, for better deserialisation of Haskell values from Strings.

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

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

sudo yum -y install ghc-polyparse

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

sudo dnf -y install ghc-polyparse

How To Uninstall ghc-polyparse on CentOS 7

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

sudo dnf remove ghc-polyparse

References

Summary

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