How To Install ghc-filepattern on Fedora 36

In this tutorial we learn how to install ghc-filepattern in Fedora 36. ghc-filepattern is File path glob-like matching

Introduction

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

What is ghc-filepattern

A library for matching files using patterns such as ‘“src//.png”’ for all ‘.png’ files recursively under the ‘src’ directory. Features * All matching is /O(n)/. Most functions precompute some information given only one argument. * See “System.FilePattern” and ‘?==’ simple matching and semantics. * Use ‘match’ and ‘substitute’ to extract suitable strings from the ‘’ and ‘’ matches, and substitute them back into other patterns. * Use ‘step’ and ‘matchMany’ to perform bulk matching of many patterns against many paths simultaneously. * Use “System.FilePattern.Directory” to perform optimised directory traverals using patterns. Originally taken from the .

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

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

sudo dnf -y install ghc-filepattern

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

sudo yum -y install ghc-filepattern

How To Uninstall ghc-filepattern on Fedora 36

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

sudo dnf remove ghc-filepattern

ghc-filepattern Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/01
/usr/lib/.build-id/01/730ecfa40682b2aba5082ddfe70312ea8c52e9
/usr/lib64/libHSfilepattern-0.1.2-H6mXsHFIMeHGapqQGTgRXv-ghc8.10.5.so
/usr/share/licenses/ghc-filepattern
/usr/share/licenses/ghc-filepattern/LICENSE

References

Summary

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