Distribution.Client.SourceFiles

cabal-install-3.12.1.0: The command-line interface for Cabal and Hackage.

Safe Haskell | None
Language | Haskell2010

Distribution.Client.SourceFiles

Description

Contains an `sdist` like function which computes the source files that we should track to determine if a rebuild is necessary. Unlike `sdist`, we can operate directly on the true `PackageDescription` (not flattened).

The naming convention, roughly, is that to declare we need the source for some type T, you use the function needT; some functions need auxiliary information.

We can only use this code for non-Custom scripts; Custom scripts may have arbitrary extra dependencies (esp. new preprocessors) which we cannot "see" easily.

# Documentation

needElaboratedConfiguredPackage :: ElaboratedConfiguredPackage -> Rebuild () #