Cabal-syntax

A library for working with .cabal files

http://www.haskell.org/cabal/

Version on this page:3.6.0.0
LTS Haskell 22.17:3.10.1.0
Stackage Nightly 2024-04-14:3.10.2.0
Latest on Hackage:3.10.3.0

See all snapshots Cabal-syntax appears in

BSD-3-Clause licensed by Cabal Development Team
Maintained by [email protected]
This version can be pinned in stack with:Cabal-syntax-3.6.0.0@sha256:037d70bb091c49f68726dde920f6a003b646835a86cdcb5b5ad58ad9af3207d9,1567

Module documentation for 3.6.0.0

There are no documented modules for this package.

Depends on 1 package(full list with versions):
Used by 1 package in nightly-2022-01-23(full list with versions):

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