| License | BSD-3-Clause |
|---|---|
| Safe Haskell | None |
| Language | GHC2024 |
Stack.Build.Cache
Description
Cache information about previous builds.
Synopsis
- tryGetBuildCache :: HasEnvConfig env => Path Abs Dir -> NamedComponent -> RIO env (Maybe FileCache)
- tryGetConfigCache :: HasEnvConfig env => Path Abs Dir -> RIO env (Maybe ConfigCache)
- tryGetCabalMod :: HasEnvConfig env => Path Abs Dir -> RIO env (Maybe CTime)
- tryGetSetupConfigMod :: HasEnvConfig env => Path Abs Dir -> RIO env (Maybe CTime)
- tryGetPackageProjectRoot :: HasEnvConfig env => Path Abs Dir -> RIO env (Maybe ByteString)
- getInstalledExes :: HasEnvConfig env => InstallLocation -> RIO env [PackageIdentifier]
- tryGetFlagCache :: HasEnvConfig env => Installed -> RIO env (Maybe ConfigCache)
- deleteCaches :: HasEnvConfig env => Path Abs Dir -> RIO env ()
- markExeInstalled :: HasEnvConfig env => InstallLocation -> PackageIdentifier -> RIO env ()
- markExeNotInstalled :: HasEnvConfig env => InstallLocation -> PackageIdentifier -> RIO env ()
- writeFlagCache :: HasEnvConfig env => Installed -> ConfigCache -> RIO env ()
- writeBuildCache :: HasEnvConfig env => Path Abs Dir -> NamedComponent -> FileCache -> RIO env ()
- writeConfigCache :: HasEnvConfig env => Path Abs Dir -> ConfigCache -> RIO env ()
- writeCabalMod :: HasEnvConfig env => Path Abs Dir -> CTime -> RIO env ()
- writeSetupConfigMod :: HasEnvConfig env => Path Abs Dir -> Maybe CTime -> RIO env ()
- writePackageProjectRoot :: HasEnvConfig env => Path Abs Dir -> ByteString -> RIO env ()
- data TestStatus
- setTestStatus :: HasEnvConfig env => Path Abs Dir -> TestStatus -> RIO env ()
- getTestStatus :: HasEnvConfig env => Path Abs Dir -> RIO env TestStatus
- writePrecompiledCache :: HasEnvConfig env => BaseConfigOpts -> PackageLocationImmutable -> ConfigureOpts -> Bool -> Installed -> Set StackUnqualCompName -> RIO env ()
- readPrecompiledCache :: HasEnvConfig env => PackageLocationImmutable -> ConfigureOpts -> Bool -> RIO env (Maybe (PrecompiledCache Abs))
- newtype BuildFileCache = BuildFileCache {}
Documentation
Arguments
| :: HasEnvConfig env | |
| => Path Abs Dir | Package directory. |
| -> NamedComponent | Package component. |
| -> RIO env (Maybe FileCache) |
Try to read the dirtiness cache for the given package directory.
Arguments
| :: HasEnvConfig env | |
| => Path Abs Dir | Package directory. |
| -> RIO env (Maybe ConfigCache) |
Try to read the Cabal configuration cache for the given package directory.
Try to read the modification time of the Cabal file from the last build.
Try to read the modification time of setup-config file from the last build.
tryGetPackageProjectRoot :: HasEnvConfig env => Path Abs Dir -> RIO env (Maybe ByteString) Source #
Try to read the project root from the last build of a package.
getInstalledExes :: HasEnvConfig env => InstallLocation -> RIO env [PackageIdentifier] Source #
Get all of the installed executables.
tryGetFlagCache :: HasEnvConfig env => Installed -> RIO env (Maybe ConfigCache) Source #
Loads the Cabal flag cache for the given installed extra-deps.
Arguments
| :: HasEnvConfig env | |
| => Path Abs Dir | Package directory. |
| -> RIO env () |
Delete the Cabal configuration cache for the given package directory.
markExeInstalled :: HasEnvConfig env => InstallLocation -> PackageIdentifier -> RIO env () Source #
Mark the given executable as installed.
markExeNotInstalled :: HasEnvConfig env => InstallLocation -> PackageIdentifier -> RIO env () Source #
Mark the given executable as not installed.
writeFlagCache :: HasEnvConfig env => Installed -> ConfigCache -> RIO env () Source #
Write the Cabal flag cache for the given installed extra-deps.
Arguments
| :: HasEnvConfig env | |
| => Path Abs Dir | Package directory. |
| -> NamedComponent | Package component. |
| -> FileCache | File cache. |
| -> RIO env () |
Write the dirtiness cache for this package's files.
Arguments
| :: HasEnvConfig env | |
| => Path Abs Dir | Package directory. |
| -> ConfigCache | Cabal configuration cache. |
| -> RIO env () |
Write the given Cabal configuration cache for the given package directory.
See tryGetCabalMod
writeSetupConfigMod :: HasEnvConfig env => Path Abs Dir -> Maybe CTime -> RIO env () Source #
writePackageProjectRoot :: HasEnvConfig env => Path Abs Dir -> ByteString -> RIO env () Source #
data TestStatus Source #
Status of test suite(s).
Arguments
| :: HasEnvConfig env | |
| => Path Abs Dir | Package directory. |
| -> TestStatus | The status of the test suite(s). |
| -> RIO env () |
Mark test suite status.
Arguments
| :: HasEnvConfig env | |
| => Path Abs Dir | Package directory. |
| -> RIO env TestStatus |
Check if the test suite(s) already passed.
writePrecompiledCache Source #
Arguments
| :: HasEnvConfig env | |
| => BaseConfigOpts | |
| -> PackageLocationImmutable | |
| -> ConfigureOpts | |
| -> Bool | build haddocks |
| -> Installed | library |
| -> Set StackUnqualCompName | executables |
| -> RIO env () |
Write out information about a newly built package
Arguments
| :: HasEnvConfig env | |
| => PackageLocationImmutable | target package |
| -> ConfigureOpts | |
| -> Bool | build haddocks |
| -> RIO env (Maybe (PrecompiledCache Abs)) |
Check the cache for a precompiled package matching the given configuration.
newtype BuildFileCache Source #
Type representing caches of information about files sufficient to identify if they have changed subsequently. Stored on disk.
Constructors
| BuildFileCache | |