How To Install ghc-bindings-DSL on Fedora 36
Introduction
In this tutorial we learn how to install ghc-bindings-DSL
on Fedora 36.
What is ghc-bindings-DSL
This is a set of macros to be used when writing Haskell FFI. They were designed to be able to fully describe C interfaces, so that hsc2hs can extract from them all Haskell code needed to mimic such interfaces. All Haskell names used are automatically derived from C names, structures are mapped to Haskell instances of Storable, and there are also macros you can use with C code to help write bindings to inline functions or macro functions. Documentation is available at package homepage <https The extra module Bindings.Utilities will contain tools that may be convenient when working with FFI.
We can use yum
or dnf
to install ghc-bindings-DSL
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-bindings-DSL.
Install ghc-bindings-DSL 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-bindings-DSL
using dnf
by running the following command:
sudo dnf -y install ghc-bindings-DSL
Install ghc-bindings-DSL 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-bindings-DSL
using yum
by running the following command:
sudo yum -y install ghc-bindings-DSL
How To Uninstall ghc-bindings-DSL on Fedora 36
To uninstall only the ghc-bindings-DSL
package we can use the following command:
sudo dnf remove ghc-bindings-DSL
ghc-bindings-DSL Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/37
/usr/lib/.build-id/37/142c9b4e320448d18ce57179dc6587fc686867
/usr/lib64/libHSbindings-DSL-1.0.25-HPosvZZry3CGDBnvtEGi5j-ghc8.10.5.so
/usr/share/licenses/ghc-bindings-DSL
/usr/share/licenses/ghc-bindings-DSL/LICENSE
References
Summary
In this tutorial we learn how to install ghc-bindings-DSL
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).