stack
LicenseBSD-3-Clause
Safe HaskellNone
LanguageGHC2024

Stack.Build.Cache

Description

Cache information about previous builds.

Synopsis

Documentation

tryGetBuildCache Source #

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.

tryGetConfigCache Source #

Arguments

:: HasEnvConfig env 
=> Path Abs Dir

Package directory.

-> RIO env (Maybe ConfigCache) 

Try to read the Cabal configuration cache for the given package directory.

tryGetCabalMod Source #

Arguments

:: HasEnvConfig env 
=> Path Abs Dir

Package directory.

-> RIO env (Maybe CTime) 

Try to read the modification time of the Cabal file from the last build.

tryGetSetupConfigMod Source #

Arguments

:: HasEnvConfig env 
=> Path Abs Dir

Package directory.

-> RIO env (Maybe CTime) 

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.

deleteCaches Source #

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.

writeBuildCache Source #

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.

writeConfigCache Source #

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.

writeCabalMod Source #

Arguments

:: HasEnvConfig env 
=> Path Abs Dir

Package directory.

-> CTime 
-> RIO env () 

data TestStatus Source #

Status of test suite(s).

Constructors

TSSuccess

The test suite(s) succeeded.

TSFailure

One or more test suites failed.

TSUnknown

The outcome of the test suite(s) is unknown.

setTestStatus Source #

Arguments

:: HasEnvConfig env 
=> Path Abs Dir

Package directory.

-> TestStatus

The status of the test suite(s).

-> RIO env () 

Mark test suite status.

getTestStatus Source #

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

readPrecompiledCache Source #

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 

Fields

Instances

Instances details
FromJSON BuildFileCache Source # 
Instance details

Defined in Stack.Types.Cache

ToJSON BuildFileCache Source # 
Instance details

Defined in Stack.Types.Cache

NFData BuildFileCache Source # 
Instance details

Defined in Stack.Types.Cache

Methods

rnf :: BuildFileCache -> () #

Generic BuildFileCache Source # 
Instance details

Defined in Stack.Types.Cache

Associated Types

type Rep BuildFileCache 
Instance details

Defined in Stack.Types.Cache

type Rep BuildFileCache = D1 ('MetaData "BuildFileCache" "Stack.Types.Cache" "stack-3.9.1-13IYZ7rHxwOAJl8arw0Lg5" 'True) (C1 ('MetaCons "BuildFileCache" 'PrefixI 'True) (S1 ('MetaSel ('Just "fileCache") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileCache)))
Show BuildFileCache Source # 
Instance details

Defined in Stack.Types.Cache

Eq BuildFileCache Source # 
Instance details

Defined in Stack.Types.Cache

type Rep BuildFileCache Source # 
Instance details

Defined in Stack.Types.Cache

type Rep BuildFileCache = D1 ('MetaData "BuildFileCache" "Stack.Types.Cache" "stack-3.9.1-13IYZ7rHxwOAJl8arw0Lg5" 'True) (C1 ('MetaCons "BuildFileCache" 'PrefixI 'True) (S1 ('MetaSel ('Just "fileCache") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileCache)))