How To Install ghc-hspec on Fedora 36

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

Introduction

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

What is ghc-hspec

Hspec is a testing framework for Haskell. Some of Hspec’s distinctive features are * a friendly DSL for defining tests * integration with QuickCheck, SmallCheck, and HUnit * parallel test execution * automatic discovery of test files The Hspec Manual is at <http

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

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

sudo dnf -y install ghc-hspec

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

sudo yum -y install ghc-hspec

How To Uninstall ghc-hspec on Fedora 36

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

sudo dnf remove ghc-hspec

ghc-hspec Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/97
/usr/lib/.build-id/97/1ddc99f7616059d0ad19a2bb21c5a30f6215ac
/usr/lib64/libHShspec-2.7.10-C8Iu8nC6KAwKIzqEgIlAnx-ghc8.10.5.so
/usr/share/licenses/ghc-hspec
/usr/share/licenses/ghc-hspec/LICENSE

References

Summary

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