How to Install and Uninstall ghc-Cabal-syntax Package on openSUSE Leap

Last updated: May 20,2024

1. Install "ghc-Cabal-syntax" package

Please follow the step by step instructions below to install ghc-Cabal-syntax on openSUSE Leap

$ sudo zypper refresh $ sudo zypper install ghc-Cabal-syntax

2. Uninstall "ghc-Cabal-syntax" package

This guide let you learn how to uninstall ghc-Cabal-syntax on openSUSE Leap:

$ sudo zypper remove ghc-Cabal-syntax

3. Information about the ghc-Cabal-syntax package on openSUSE Leap

Information for package ghc-Cabal-syntax:
-----------------------------------------
Repository : Main Repository
Name : ghc-Cabal-syntax
Version : 3.6.0.0-bp155.2.14
Arch : x86_64
Vendor : openSUSE
Installed Size : 1.6 KiB
Installed : No
Status : not installed
Source package : ghc-Cabal-syntax-3.6.0.0-bp155.2.14.src
Upstream URL : https://hackage.haskell.org/package/Cabal-syntax
Summary : A library for working with .cabal files
Description :
This library provides tools for reading and manipulating the .cabal file
format.
Version 3.6 (unlike the following versions) is a dummy package that prevents
module name clases between Cabal and Cabal-syntax if used together with a Cabal
flag as described below.
In Cabal-3.7 this package was split off. To avoid module name clashes, you can
add this to your .cabal file:
> flag Cabal-syntax > description: Use the new Cabal-syntax package > default:
False > manual: False > > library > -- ... > if flag(Cabal-syntax) >
build-depends: Cabal-syntax >= 3.7 > else > build-depends: Cabal < 3.7,
Cabal-syntax < 3.7
This will default to the older build, but will allow consumers to opt-in to the
newer libraries by requiring Cabal or Cabal-syntax >= 3.7.