How To Install ghc-blaze-html on CentOS 7

In this tutorial we learn how to install ghc-blaze-html on CentOS 7. ghc-blaze-html is A blazingly fast HTML combinator library for Haskell

Introduction

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

What is ghc-blaze-html

A blazingly fast HTML combinator library for the Haskell programming language. It embeds HTML templates in Haskell code for optimal efficiency and composability. The project is aimed at those who seek to write web applications in Haskell — it integrates well with Haskell web frameworks.

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

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

sudo yum -y install ghc-blaze-html

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

sudo dnf -y install ghc-blaze-html

How To Uninstall ghc-blaze-html on CentOS 7

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

sudo dnf remove ghc-blaze-html

References

Summary

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