How To Install ghc-bytestring-trie on Fedora 36

In this tutorial we learn how to install ghc-bytestring-trie in Fedora 36. ghc-bytestring-trie is An efficient finite map from (byte)strings to values

Introduction

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

What is ghc-bytestring-trie

An efficient finite map from bytestrings to values. The implementation is based on big-endian patricia trees, like “Data.IntMap”. We first trie on the elements of “Data.ByteString” and then trie on the big-endian bit representation of those elements. Patricia trees have efficient algorithms for union and other merging operations, but they’re also quick for lookups and insertions. If you are only interested in being able to associate strings to values, then you may prefer the ‘hashmap’ package which is faster for those only needing a map-like structure. This package is intended for those who need the extra capabilities that a trie-like structure can offer (e.g., structure sharing to reduce memory costs for highly redundant keys, taking the submap of all keys with a given prefix, contextual mapping, extracting the minimum and maximum keys, etc.).

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

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

sudo dnf -y install ghc-bytestring-trie

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

sudo yum -y install ghc-bytestring-trie

How To Uninstall ghc-bytestring-trie on Fedora 36

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

sudo dnf remove ghc-bytestring-trie

ghc-bytestring-trie Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/c6
/usr/lib/.build-id/c6/6a2c0835dbad2153dcb9f957a6e871db0f071f
/usr/lib64/libHSbytestring-trie-0.2.5.0-5v8SfUhkIW2IOF4QCIfek0-ghc8.10.5.so
/usr/share/licenses/ghc-bytestring-trie
/usr/share/licenses/ghc-bytestring-trie/LICENSE

References

Summary

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