How To Install ghc-cabal-doctest on Fedora 36

In this tutorial we learn how to install ghc-cabal-doctest in Fedora 36. ghc-cabal-doctest is A Setup.hs helper for doctests running

Introduction

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

What is ghc-cabal-doctest

Currently (beginning of 2017), there isn’t ‘cabal doctest’ command. Yet, to properly work doctest needs plenty of configuration. This library provides the common bits for writing custom Setup.hs See <https ‘cabal doctest’, i.e. whether this library is obsolete.

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

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

sudo dnf -y install ghc-cabal-doctest

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

sudo yum -y install ghc-cabal-doctest

How To Uninstall ghc-cabal-doctest on Fedora 36

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

sudo dnf remove ghc-cabal-doctest

ghc-cabal-doctest Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/4765f9e200abd0dfc9ecfc49bac78be079e399
/usr/lib64/libHScabal-doctest-1.0.8-C2NU0MzNPJgFFyaSwaSZPn-ghc8.10.5.so
/usr/share/licenses/ghc-cabal-doctest
/usr/share/licenses/ghc-cabal-doctest/LICENSE

References

Summary

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