How To Install ghc-hspec-expectations on Fedora 36

In this tutorial we learn how to install ghc-hspec-expectations in Fedora 36. ghc-hspec-expectations is Catchy combinators for HUnit

Introduction

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

What is ghc-hspec-expectations

Catchy combinators for HUnit. The three main primitives are shouldBe, shouldSatisfy and shouldThrow. They can be used with HUnit, or any framework that integrates with HUnit, like test-framework or Hspec.

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

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

sudo dnf -y install ghc-hspec-expectations

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

sudo yum -y install ghc-hspec-expectations

How To Uninstall ghc-hspec-expectations on Fedora 36

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

sudo dnf remove ghc-hspec-expectations

ghc-hspec-expectations Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/8125ffd66ae50dca07b44989c2c2ab99e06602
/usr/lib64/libHShspec-expectations-0.8.2-K2UncJNlvwz77TPdQXZXHR-ghc8.10.5.so
/usr/share/licenses/ghc-hspec-expectations
/usr/share/licenses/ghc-hspec-expectations/LICENSE

References

Summary

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