How To Install ghc-megaparsec on Fedora 36
Introduction
In this tutorial we learn how to install ghc-megaparsec
on Fedora 36.
What is ghc-megaparsec
This is an industrial-strength monadic parser combinator library. Megaparsec is a feature-rich package that tries to find a nice balance between speed, flexibility, and quality of parse errors.
We can use yum
or dnf
to install ghc-megaparsec
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-megaparsec.
Install ghc-megaparsec 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-megaparsec
using dnf
by running the following command:
sudo dnf -y install ghc-megaparsec
Install ghc-megaparsec 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-megaparsec
using yum
by running the following command:
sudo yum -y install ghc-megaparsec
How To Uninstall ghc-megaparsec on Fedora 36
To uninstall only the ghc-megaparsec
package we can use the following command:
sudo dnf remove ghc-megaparsec
ghc-megaparsec Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/1f
/usr/lib/.build-id/1f/690e9d0ba74207078add316c36c6b352d277c9
/usr/lib64/libHSmegaparsec-9.0.1-GCUc7J60CqY64xQOkte43B-ghc8.10.5.so
/usr/share/licenses/ghc-megaparsec
/usr/share/licenses/ghc-megaparsec/LICENSE.md
References
Summary
In this tutorial we learn how to install ghc-megaparsec
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).