How To Install ghc-parsers on Fedora 36
Introduction
In this tutorial we learn how to install ghc-parsers
on Fedora 36.
What is ghc-parsers
This library provides convenient combinators for working with and building parsing combinator libraries. Given a few simple instances, e.g. for the class ‘Text.Parser.Combinators.Parsing’ in “Text.Parser.Combinators.Parsing” you get access to a large number of canned definitions. Instances exist for the parsers provided by ‘parsec’, ‘attoparsec’ and base’s “Text.Read”.
We can use yum
or dnf
to install ghc-parsers
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-parsers.
Install ghc-parsers 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-parsers
using dnf
by running the following command:
sudo dnf -y install ghc-parsers
Install ghc-parsers 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-parsers
using yum
by running the following command:
sudo yum -y install ghc-parsers
How To Uninstall ghc-parsers on Fedora 36
To uninstall only the ghc-parsers
package we can use the following command:
sudo dnf remove ghc-parsers
ghc-parsers Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/56
/usr/lib/.build-id/56/8a9725a035d35418910e826c1a4da248a9dd52
/usr/lib64/libHSparsers-0.12.10-JgLuMVb4CXq7urR33M7BKz-ghc8.10.5.so
/usr/share/licenses/ghc-parsers
/usr/share/licenses/ghc-parsers/LICENSE
References
Summary
In this tutorial we learn how to install ghc-parsers
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).