How To Install ghc-doctest on Fedora 36

In this tutorial we learn how to install ghc-doctest in Fedora 36. ghc-doctest is Test interactive Haskell examples

Introduction

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

What is ghc-doctest

The doctest program checks examples in source code comments. It is modeled after doctest for Python (<https Documentation is at <https

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

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

sudo dnf -y install ghc-doctest

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

sudo yum -y install ghc-doctest

How To Uninstall ghc-doctest on Fedora 36

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

sudo dnf remove ghc-doctest

ghc-doctest Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/b3
/usr/lib/.build-id/b3/528eadc1fab28ee92551a51cfde1b69610f68f
/usr/lib64/libHSdoctest-0.17-19IB1n90QfD2HUUh4ln1at-ghc8.10.5.so
/usr/share/licenses/ghc-doctest
/usr/share/licenses/ghc-doctest/LICENSE

References

Summary

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