How To Install ghc-esqueleto on Fedora 36
Introduction
In this tutorial we learn how to install ghc-esqueleto
on Fedora 36.
What is ghc-esqueleto
’esqueleto’ is a bare bones, type-safe EDSL for SQL queries that works with unmodified ‘persistent’ SQL backends. Its language closely resembles SQL, so you don’t have to learn new concepts, just new syntax, and it’s fairly easy to predict the generated SQL and optimize it for your backend. Most kinds of errors committed when writing SQL are caught as compile-time errors—although it is possible to write type-checked ’esqueleto’ queries that fail at runtime. ‘persistent’ is a library for type-safe data serialization. It has many kinds of backends, such as SQL backends (‘persistent-mysql’, ‘persistent-postgresql’, ‘persistent-sqlite’) and NoSQL backends (‘persistent-mongoDB’). While ‘persistent’ is a nice library for storing and retrieving records, including with filters, it does not try to support some of the features that are specific to SQL backends. In particular, ’esqueleto’ is the recommended library for type-safe ‘JOIN’s on ‘persistent’ SQL backends. (The alternative is using raw SQL, but that’s error prone and does not offer any composability.) Currently, ‘SELECT’s, ‘UPDATE’s, ‘INSERT’s and ‘DELETE’s are supported. Not all SQL features are available, but most of them can be easily added (especially functions), so please open an issue or send a pull request if you need anything that is not covered by ’esqueleto’ on <https The name of this library means “skeleton” in Portuguese and contains all three SQL letters in the correct order =). It was inspired by Scala’s Squeryl but created from scratch.
We can use yum
or dnf
to install ghc-esqueleto
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-esqueleto.
Install ghc-esqueleto 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-esqueleto
using dnf
by running the following command:
sudo dnf -y install ghc-esqueleto
Install ghc-esqueleto 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-esqueleto
using yum
by running the following command:
sudo yum -y install ghc-esqueleto
How To Uninstall ghc-esqueleto on Fedora 36
To uninstall only the ghc-esqueleto
package we can use the following command:
sudo dnf remove ghc-esqueleto
ghc-esqueleto Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/b094377b2f94f725a9ace6418aa2e388a7610e
/usr/lib64/libHSesqueleto-3.5.2.1-68ISRbMWPPb8vfVOy26v25-ghc8.10.5.so
/usr/share/licenses/ghc-esqueleto
/usr/share/licenses/ghc-esqueleto/LICENSE
References
Summary
In this tutorial we learn how to install ghc-esqueleto
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).