How To Install ghc-regex-tdfa on Fedora 36

In this tutorial we learn how to install ghc-regex-tdfa in Fedora 36. ghc-regex-tdfa is Pure Haskell Tagged DFA Backend for “Text.Regex” (regex-base)

Introduction

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

What is ghc-regex-tdfa

This package provides a pure Haskell “Tagged” DFA regex engine for <//hackage.haskell.org/package/regex-base regex-base>. This implementation was inspired by the algorithm (and Master’s thesis) behind the regular expression library known as <https Please consult the “Text.Regex.TDFA” module for API documentation including a tutorial with usage examples; see also <https regular expression support in Haskell.

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

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

sudo dnf -y install ghc-regex-tdfa

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

sudo yum -y install ghc-regex-tdfa

How To Uninstall ghc-regex-tdfa on Fedora 36

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

sudo dnf remove ghc-regex-tdfa

ghc-regex-tdfa Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/3690709abaf7a5aa0c545e7dcb73b8d88e8c89
/usr/lib64/libHSregex-tdfa-1.3.1.1-8VoMbEm3wUO54FUt0LvNBD-ghc8.10.5.so
/usr/share/licenses/ghc-regex-tdfa
/usr/share/licenses/ghc-regex-tdfa/LICENSE

References

Summary

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