How To Install ghc-shelly on CentOS 7

In this tutorial we learn how to install ghc-shelly on CentOS 7. ghc-shelly is Shell-like systems programming in Haskell

Introduction

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

What is ghc-shelly

Shelly provides convenient systems programming in Haskell, similar in spirit to POSIX shells. Shelly * is aimed at convenience and getting things done rather than being a demonstration of elegance. * has detailed and useful error messages * maintains its own environment, making it thread-safe. * is modern, using Text and system-filepath/system-fileio Shelly is originally forked from the Shellish library. An overview is available in the README <https

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

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

sudo yum -y install ghc-shelly

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

sudo dnf -y install ghc-shelly

How To Uninstall ghc-shelly on CentOS 7

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

sudo dnf remove ghc-shelly

References

Summary

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