How To Install ghc-hspec-core on Fedora 36

In this tutorial we learn how to install ghc-hspec-core in Fedora 36. ghc-hspec-core is A Testing Framework for Haskell

Introduction

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

What is ghc-hspec-core

This package exposes internal types and functions that can be used to extend Hspec’s functionality.

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

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

sudo dnf -y install ghc-hspec-core

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

sudo yum -y install ghc-hspec-core

How To Uninstall ghc-hspec-core on Fedora 36

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

sudo dnf remove ghc-hspec-core

ghc-hspec-core Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/6a5d43b5333a525edbaa8b1f829f8616d85880
/usr/lib64/libHShspec-core-2.7.10-1TN3LYDO56eH3ubtrJmcYk-ghc8.10.5.so
/usr/share/licenses/ghc-hspec-core
/usr/share/licenses/ghc-hspec-core/LICENSE

References

Summary

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