How To Install ghc-indents on Fedora 36

In this tutorial we learn how to install ghc-indents in Fedora 36. ghc-indents is Indentation sensitive parser-combinators for parsec

Introduction

In this tutorial we learn how to install ghc-indents on Fedora 36.

What is ghc-indents

This library provides functions for use in parsing indentation sensitive contexts. It parses blocks of lines all indented to the same level as well as lines continued at an indented level below.

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

Install ghc-indents on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install ghc-indents using dnf by running the following command:

sudo dnf -y install ghc-indents

Install ghc-indents on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install ghc-indents using yum by running the following command:

sudo yum -y install ghc-indents

How To Uninstall ghc-indents on Fedora 36

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

sudo dnf remove ghc-indents

ghc-indents Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/1b
/usr/lib/.build-id/1b/df0a6f729aaeb912f7c4afd5f01c3b9320ee0c
/usr/lib64/libHSindents-0.5.0.1-F0BQ1tCj4iTFfBSY5fvF8s-ghc8.10.5.so
/usr/share/licenses/ghc-indents
/usr/share/licenses/ghc-indents/LICENSE

References

Summary

In this tutorial we learn how to install ghc-indents on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).