Cabal-syntax: A library for working with .cabal files

[ bsd3, distribution, library ] [ Propose Tags ]

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

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Candidates

Versions [RSS] 3.6.0.0
Dependencies Cabal (<3.7) [details]
License BSD-3-Clause
Copyright 2003-2021, Cabal Development Team (see AUTHORS file)
Author Cabal Development Team <cabal-devel@haskell.org>
Maintainer cabal-devel@haskell.org
Category Distribution
Home page http://www.haskell.org/cabal/
Bug tracker https://github.com/haskell/cabal/issues
Source repo head: git clone https://github.com/haskell/cabal/(Cabal-syntax)
Uploaded by PatrickDougherty at 2022-01-22T14:49:31Z
Distributions LTSHaskell:3.6.0.0, NixOS:3.6.0.0, Stackage:3.6.0.0, openSUSE:3.6.0.0
Downloads 1606 total (127 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2022-01-22 [all 1 reports]