How To Install ghc-wai-extra on Fedora 36

In this tutorial we learn how to install ghc-wai-extra in Fedora 36. ghc-wai-extra is Basic WAI handlers and middleware

Introduction

In this tutorial we learn how to install ghc-wai-extra on Fedora 36.

What is ghc-wai-extra

Provides basic WAI handler and middleware functionality * WAI Testing Framework Hspec testing facilities and helpers for WAI. * Event Source/Event Stream Send server events to the client. Compatible with the JavaScript EventSource API. * Accept Override Override the Accept header in a request. Special handling for the _accept query parameter (which is used throughout WAI override the Accept header). * Add Headers WAI Middleware for adding arbitrary headers to an HTTP request. * Clean Path Clean a request path to a canonical form. * GZip Compression Negotiate HTTP payload gzip compression. * HTTP Basic Authentication WAI Basic Authentication Middleware which uses Authorization header. * JSONP “JSON with Padding” middleware. Automatic wrapping of JSON responses to convert into JSONP. * Method Override / Post Allows overriding of the HTTP request method via the _method query string parameter. * Request Logging Request logging middleware for development and production environments * Request Rewrite Rewrite request path info based on a custom conversion rules. * Stream Files Convert ResponseFile type responses into ResponseStream type. * Virtual Host Redirect incoming requests to a new host based on custom rules. This library provides common Web Application Interface features. API docs and the README are available at <http

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

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

sudo dnf -y install ghc-wai-extra

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

sudo yum -y install ghc-wai-extra

How To Uninstall ghc-wai-extra on Fedora 36

To uninstall only the ghc-wai-extra package we can use the following command:

sudo dnf remove ghc-wai-extra

ghc-wai-extra Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/06
/usr/lib/.build-id/06/0aa2f87bb3e57688c337b4480943accd389372
/usr/lib64/libHSwai-extra-3.1.6-A22sk3HGsQoCjn5eB3xk2q-ghc8.10.5.so
/usr/share/licenses/ghc-wai-extra
/usr/share/licenses/ghc-wai-extra/LICENSE

References

Summary

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