How To Install ghc-scotty on Fedora 36
Introduction
In this tutorial we learn how to install ghc-scotty
on Fedora 36.
What is ghc-scotty
A Haskell web framework inspired by Ruby’s Sinatra, using WAI and Warp. Scotty is the cheap and cheerful way to write RESTful, declarative web applications. * A page is as simple as defining the verb, url pattern, and Text content. * It is template-language agnostic. Anything that returns a Text value will do. * Conforms to WAI Application interface. * Uses very fast Warp webserver by default. As for the name
We can use yum
or dnf
to install ghc-scotty
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-scotty.
Install ghc-scotty 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-scotty
using dnf
by running the following command:
sudo dnf -y install ghc-scotty
Install ghc-scotty 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-scotty
using yum
by running the following command:
sudo yum -y install ghc-scotty
How To Uninstall ghc-scotty on Fedora 36
To uninstall only the ghc-scotty
package we can use the following command:
sudo dnf remove ghc-scotty
ghc-scotty Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/89
/usr/lib/.build-id/89/23cc332c660faf2d466d3545cea8bdab084c44
/usr/lib64/libHSscotty-0.12-FdFP6ASqF9fjChXVTYcdt-ghc8.10.5.so
/usr/share/licenses/ghc-scotty
/usr/share/licenses/ghc-scotty/LICENSE
References
Summary
In this tutorial we learn how to install ghc-scotty
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).