HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

ModuleCabal-3.12.1.0Haskell2010

Distribution.Simple.SrcDist

This handles the sdist command. The module exports an sdist action but also some of the phases that make it up so that other tools can use just the bits they need. In particular the preparation of the tree of files to go into the source tarball is separated from actually building the source tarball.

The createArchive action uses the external tar program and assumes that it accepts the -z flag. Neither of these assumptions are valid on Windows. The sdist action now also does some distribution QA checks.

  • 10 values
  • PackageCabal-3.12.1.0
  • Exports10
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceSrcDist.hs

The top level action

1 declaration

Parts of sdist

Snapshots

Given a date produce a corresponding integer representation. For example given a date 18032008 produce the number 20080318.

Extracting the source files

2 declarations
valuelistPackageSourcesWithDie
  1. :: Verbosity

    verbosity

  2. -> (Verbosity -> CabalException -> IO [FilePath])

    die' alternative. Since die' prefixes the error message with errorPrefix, whatever is passed in here and wants to die should do the same. See issue #7331.

  3. -> FilePath

    directory with cabal file

  4. -> PackageDescription

    info from the cabal file

  5. -> [PPSuffixHandler]

    extra preprocessors (include suffixes)

  6. -> IO [FilePath]

    relative paths

#

A variant of listPackageSources with configurable die.

Note: may still die directly. For example on missing include file.

Since @3.4.0.0