How To Install ghc-servant-server on Fedora 36

In this tutorial we learn how to install ghc-servant-server in Fedora 36. ghc-servant-server is A family of combinators for defining webservices APIs and serving them

Introduction

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

What is ghc-servant-server

A family of combinators for defining webservices APIs and serving them You can learn about the basics in the <http is a runnable example, with comments, that defines a dummy API and implements a webserver that serves this API, using this package. .

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

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

sudo dnf -y install ghc-servant-server

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

sudo yum -y install ghc-servant-server

How To Uninstall ghc-servant-server on Fedora 36

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

sudo dnf remove ghc-servant-server

ghc-servant-server Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/0f
/usr/lib/.build-id/0f/1d565c5cbaf3e54d58756ce47356394fdb77ce
/usr/lib64/libHSservant-server-0.18.3-GjrmKWu0fFx9yU6RFxBcDq-ghc8.10.5.so
/usr/share/licenses/ghc-servant-server
/usr/share/licenses/ghc-servant-server/LICENSE

References

Summary

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