How To Install ghc-servant-foreign on Fedora 36
Introduction
In this tutorial we learn how to install ghc-servant-foreign
on Fedora 36.
What is ghc-servant-foreign
Helper types and functions for generating client functions for servant APIs in any programming language This package provides types and functions that collect all the data needed to generate client functions in the programming language of your choice. This effectively means you only have to write the code that “pretty-prints” this data as some code in your target language. See the servant-js package for an example
.
We can use yum
or dnf
to install ghc-servant-foreign
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-servant-foreign.
Install ghc-servant-foreign 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-servant-foreign
using dnf
by running the following command:
sudo dnf -y install ghc-servant-foreign
Install ghc-servant-foreign 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-servant-foreign
using yum
by running the following command:
sudo yum -y install ghc-servant-foreign
How To Uninstall ghc-servant-foreign on Fedora 36
To uninstall only the ghc-servant-foreign
package we can use the following command:
sudo dnf remove ghc-servant-foreign
ghc-servant-foreign Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/55
/usr/lib/.build-id/55/1fe589f6a5924819af4db1a90a143590dd525d
/usr/lib64/libHSservant-foreign-0.15.4-3yI1PY3i3TOtBstvzxpbT-ghc8.10.5.so
/usr/share/licenses/ghc-servant-foreign
/usr/share/licenses/ghc-servant-foreign/LICENSE
References
Summary
In this tutorial we learn how to install ghc-servant-foreign
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).