How To Install ghc-text-short on Fedora 36
Introduction
In this tutorial we learn how to install ghc-text-short
on Fedora 36.
What is ghc-text-short
This package provides the ‘ShortText’ type which is suitable for keeping many short strings in memory. This is similiar to how ‘ShortByteString’ relates to ‘ByteString’. The main difference between ‘Text’ and ‘ShortText’ is that ‘ShortText’ uses UTF-8 instead of UTF-16 internally and also doesn’t support zero-copy slicing (thereby saving 2 words). Consequently, the memory footprint of a (boxed) ‘ShortText’ value is 4 words (2 words when unboxed) plus the length of the UTF-8 encoded payload.
We can use yum
or dnf
to install ghc-text-short
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-text-short.
Install ghc-text-short 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-text-short
using dnf
by running the following command:
sudo dnf -y install ghc-text-short
Install ghc-text-short 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-text-short
using yum
by running the following command:
sudo yum -y install ghc-text-short
How To Uninstall ghc-text-short on Fedora 36
To uninstall only the ghc-text-short
package we can use the following command:
sudo dnf remove ghc-text-short
ghc-text-short Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/39f9ba3123e27c9229a79758e0b0104d775268
/usr/lib64/libHStext-short-0.1.3-BfuzTbCdxbz2Yorj4xrwjw-ghc8.10.5.so
/usr/share/licenses/ghc-text-short
/usr/share/licenses/ghc-text-short/LICENSE
References
Summary
In this tutorial we learn how to install ghc-text-short
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).