How To Install ghc-Only on Fedora 36

In this tutorial we learn how to install ghc-Only in Fedora 36. ghc-Only is The 1-tuple type or single-value “collection”

Introduction

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

What is ghc-Only

This package provides a canonical anonymous 1-tuple type missing from Haskell for attaching typeclass instances. NOTE boxed ‘data’-type provides a 1-tuple type which has laziness properties which are more faithful to the ones of Haskell’s native tuples; whereas the primary purpose of ‘Only’ is to provide the traditionally so named type-wrapper for attaching typeclass instances.

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

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

sudo dnf -y install ghc-Only

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

sudo yum -y install ghc-Only

How To Uninstall ghc-Only on Fedora 36

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

sudo dnf remove ghc-Only

ghc-Only Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/64
/usr/lib/.build-id/64/d1dd9105162641f7f8c155e87044182599b79d
/usr/lib64/libHSOnly-0.1-FUCJUAPDXF54dPZ4SnGX6G-ghc8.10.5.so
/usr/share/licenses/ghc-Only
/usr/share/licenses/ghc-Only/LICENSE

References

Summary

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