How To Install ghc-turtle on Fedora 36

In this tutorial we learn how to install ghc-turtle in Fedora 36. ghc-turtle is Shell programming, Haskell-style

Introduction

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

What is ghc-turtle

’turtle’ is a reimplementation of the Unix command line environment in Haskell so that you can use Haskell as both a shell and a scripting language. Features include * Batteries included * Interoperability * Portability * Exception safety * Streaming * Patterns * Formatting * Modern Read “Turtle.Tutorial” for a detailed tutorial or “Turtle.Prelude” for a quick-start guide ’turtle’ is designed to be beginner-friendly, but as a result lacks certain features, like tracing commands. If you feel comfortable using ’turtle’ then you should also check out the ‘Shelly’ library which provides similar functionality.

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

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

sudo dnf -y install ghc-turtle

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

sudo yum -y install ghc-turtle

How To Uninstall ghc-turtle on Fedora 36

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

sudo dnf remove ghc-turtle

ghc-turtle Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/0df6b1648f1d341be7a05112b8716e67962030
/usr/lib64/libHSturtle-1.5.22-BgViePmQqmEDR6cYDVLhgg-ghc8.10.5.so
/usr/share/licenses/ghc-turtle
/usr/share/licenses/ghc-turtle/LICENSE

References

Summary

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