How To Install ghc-managed on Fedora 36
Introduction
In this tutorial we learn how to install ghc-managed
on Fedora 36.
What is ghc-managed
In Haskell you very often acquire values using the ‘with…’ idiom using functions of type ‘(a -> IO r) -> IO r’. This idiom forms a ‘Monad’, which is a special case of the ‘ContT’ monad (from ’transformers’) or the ‘Codensity’ monad (from ‘kan-extensions’). The main purpose behind this package is to provide a restricted form of these monads specialized to this unusually common case. The reason this package defines a specialized version of these types is to * be more beginner-friendly, * simplify inferred types and error messages, and * provide some additional type class instances that would otherwise be orphan instances.
We can use yum
or dnf
to install ghc-managed
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-managed.
Install ghc-managed 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-managed
using dnf
by running the following command:
sudo dnf -y install ghc-managed
Install ghc-managed 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-managed
using yum
by running the following command:
sudo yum -y install ghc-managed
How To Uninstall ghc-managed on Fedora 36
To uninstall only the ghc-managed
package we can use the following command:
sudo dnf remove ghc-managed
ghc-managed Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/39
/usr/lib/.build-id/39/5b2f83398224ddca3233edd4403c29e00ba561
/usr/lib64/libHSmanaged-1.0.8-7dDi1QnJFf08rXWKXOzZaH-ghc8.10.5.so
/usr/share/licenses/ghc-managed
/usr/share/licenses/ghc-managed/LICENSE
References
Summary
In this tutorial we learn how to install ghc-managed
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).