HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

ModuleCabal-3.18.1.0Haskell2010

Distribution.Simple.Build.Macros

Generate cabal_macros.h - CPP macros for package version testing

When using CPP you get

VERSION_<package>
MIN_VERSION_<package>(A,B,C)

for each package in build-depends, which is true if the version of package in use is >= A.B.C, using the normal ordering on version numbers.

TODO Figure out what to do about backpack and internal libraries. It is very suspicious that this stuff works with munged package identifiers

  • 2 values
  • PackageCabal-3.18.1.0
  • Exports2
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceMacros.hs