How To Install ghc-shake-devel on CentOS 7

In this tutorial we learn how to install ghc-shake-devel on CentOS 7. ghc-shake-devel is Haskell shake library development files

Introduction

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

What is ghc-shake-devel

This package provides the Haskell shake library development files. To use Shake the user writes a Haskell program that imports “Development.Shake”, defines some build rules, and calls the ‘Development.Shake.shakeArgs’ function. Thanks to do notation and infix operators, a simple Shake build system is not too dissimilar from a simple Makefile. However, as build systems get more complex, Shake is able to take advantage of the excellent abstraction facilities offered by Haskell and easily support much larger projects. The Shake library provides all the standard features available in other build systems, including automatic parallelism and minimal rebuilds. Shake also provides more accurate dependency tracking, including seamless support for generated files, and dependencies on system information (e.g. compiler version).

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

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

sudo yum -y install ghc-shake-devel

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

sudo dnf -y install ghc-shake-devel

How To Uninstall ghc-shake-devel on CentOS 7

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

sudo dnf remove ghc-shake-devel

References

Summary

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