How To Install ghc-base-unicode-symbols on CentOS 7

In this tutorial we learn how to install ghc-base-unicode-symbols on CentOS 7. ghc-base-unicode-symbols is Unicode alternatives for common functions and operators

Introduction

In this tutorial we learn how to install ghc-base-unicode-symbols on CentOS 7.

What is ghc-base-unicode-symbols

This package defines new symbols for a number of functions, operators and types in the base package. All symbols are documented with their actual definition and information regarding their Unicode code point. They should be completely interchangeable with their definitions. For more Unicode goodness you can enable the UnicodeSyntax language extension. This extension enables Unicode characters to be used to stand for certain ASCII character sequences, i.e. → instead of ->, ∀ instead of forall and many others.

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

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

sudo yum -y install ghc-base-unicode-symbols

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

sudo dnf -y install ghc-base-unicode-symbols

How To Uninstall ghc-base-unicode-symbols on CentOS 7

To uninstall only the ghc-base-unicode-symbols package we can use the following command:

sudo dnf remove ghc-base-unicode-symbols

References

Summary

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