How To Install ghc-file-embed on Fedora 36

In this tutorial we learn how to install ghc-file-embed in Fedora 36. ghc-file-embed is Use Template Haskell to embed file contents directly

Introduction

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

What is ghc-file-embed

Use Template Haskell to read a file or all the files in a directory, and turn them into (path, bytestring) pairs embedded in your Haskell code.

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

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

sudo dnf -y install ghc-file-embed

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

sudo yum -y install ghc-file-embed

How To Uninstall ghc-file-embed on Fedora 36

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

sudo dnf remove ghc-file-embed

ghc-file-embed Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/4269e4aecfc7a68ad3cc8a75c83fa3f304b27b
/usr/lib64/libHSfile-embed-0.0.14.0-GfeXRY82mmWF3g3U2v7jH5-ghc8.10.5.so
/usr/share/licenses/ghc-file-embed
/usr/share/licenses/ghc-file-embed/LICENSE

References

Summary

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