BSD-3-Clause licensed by Jens Petersen
Maintained by [email protected]
This version can be pinned in stack with:simple-cabal-0.2.0@sha256:a6da7b9e90ae932578c46e9fee6f7b0304ba96fe79b757213d61708df756371f,1865

Module documentation for 0.2.0

Used by 2 packages in nightly-2025-09-18(full list with versions):

simple-cabal

Hackage BSD3 license Stackage Lts Stackage Nightly

A small compatibility wrapper library over Cabal.

Examples

pkgid <- getPackageId
putStrLn $ showPkgId pkgid
cabalfile <- findCabalFile
genPkgDesc <- readGenericPackageDescription' normal cabalfile

Contribute

simple-cabal is distributed under a BSD3 license.

Contributions are welcome at https://github.com/juhp/simple-cabal

Changes

Changelog

simple-cabal uses PVP Versioning

0.2.0 (2025-09-17)

  • support Cabal 3.14:
  • readGenericPackageDescription’ replaces readGenericPackageDescription (which changed type for Cabal >= 3.14)
  • tryFindPackageDesc’ replaces tryFindPackageDesc to allow for Cabal >= 3.14
  • add simpleParsec (Cabal >= 2.2)
  • export UnqualComponentName, mkUnqualComponentName (Cabal >= 2.0)
  • export unUnqualComponentName

0.1.3 (2020-10-04)

  • add allLibraries (from Cabal>= 2.0) and Library
  • deprecate allBuildInfo

0.1.2 (2020-05-23)

  • readFinalPackageDescription deprecates finalPackageDescription
  • add makeFinalPackageDescription
  • add parseFinalPackageDescription for Cabal-2.2+
  • export simpleParse
  • export hasExes and hasLibs

0.1.1 (2019-10-05)

  • fix tryFindPackageDesc on Cabal 3

0.1.0 (2019-09-30)

  • add buildDependencies, setupDependencies, testsuiteDependencies (from cabal-rpm), and tryFindPackageDesc
  • more deps compatibility: showVersion, depPkgName, exeDepName, pkgcfgDepName
  • export PackageName, mkPackageName, unPackageName, allBuildInfo, BuildInfo, FlagName & mkFlagName, licenseFiles
  • no longer export: normal
  • support Cabal-3 (ghc-8.8.1)

0.0.0.1 (2019-07-09)

  • allow building with Cabal 1!

0.0.0 (2019-06-08)

  • Initially version, mostly taken from cabal-rpm PackageUtils.hs