How To Install ghc-scientific on Fedora 36

In this tutorial we learn how to install ghc-scientific in Fedora 36. ghc-scientific is Numbers represented using scientific notation

Introduction

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

What is ghc-scientific

‘Data.Scientific’ provides a space efficient and arbitrary precision scientific number type. A ‘Scientific’ number is represented with coefficient ‘c’ and base10Exponent ’e’ and corresponds to the ‘Fractional’ number ‘fromInteger c * 10 ^^ e’ The main application of ‘Scientific’ is to be used as the target of parsing arbitrary precision numbers coming from an untrusted source.

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

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

sudo dnf -y install ghc-scientific

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

sudo yum -y install ghc-scientific

How To Uninstall ghc-scientific on Fedora 36

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

sudo dnf remove ghc-scientific

ghc-scientific Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/4d
/usr/lib/.build-id/4d/5f6acc08f82401f84f8c4f9527ab2ca76d0665
/usr/lib64/libHSscientific-0.3.7.0-LDPslsw44qeJsI1zT3N2li-ghc8.10.5.so
/usr/share/licenses/ghc-scientific
/usr/share/licenses/ghc-scientific/LICENSE

References

Summary

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