How to Install and Uninstall c2hs Package on openSUSE Leap

Last updated: November 23,2024

1. Install "c2hs" package

Please follow the guidelines below to install c2hs on openSUSE Leap

$ sudo zypper refresh $ sudo zypper install c2hs

2. Uninstall "c2hs" package

In this section, we are going to explain the necessary steps to uninstall c2hs on openSUSE Leap:

$ sudo zypper remove c2hs

3. Information about the c2hs package on openSUSE Leap

Information for package c2hs:
-----------------------------
Repository : Main Repository
Name : c2hs
Version : 0.28.8-bp155.3.13
Arch : x86_64
Vendor : openSUSE
Installed Size : 5.7 MiB
Installed : No
Status : not installed
Source package : c2hs-0.28.8-bp155.3.13.src
Upstream URL : https://hackage.haskell.org/package/c2hs
Summary : C->Haskell FFI tool that gives some cross-language type safety
Description :
C->Haskell assists in the development of Haskell bindings to C libraries.
It extracts interface information from C header files and generates Haskell
code with foreign imports and marshaling. Unlike writing foreign imports by
hand (or using hsc2hs), this ensures that C functions are imported with the
correct Haskell types.