stack-1.1.2: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Stack.Build.Cache

Description

Cache information about previous builds

Synopsis

Documentation

tryGetBuildCache :: (MonadIO m, MonadReader env m, MonadThrow m, HasEnvConfig env) => Path Abs Dir -> m (Maybe (Map FilePath FileCacheInfo)) #

Try to read the dirtiness cache for the given package directory.

tryGetConfigCache :: (MonadIO m, MonadReader env m, MonadThrow m, HasEnvConfig env) => Path Abs Dir -> m (Maybe ConfigCache) #

Try to read the dirtiness cache for the given package directory.

tryGetCabalMod :: (MonadIO m, MonadReader env m, MonadThrow m, HasEnvConfig env) => Path Abs Dir -> m (Maybe ModTime) #

Try to read the mod time of the cabal file from the last build

getInstalledExes :: (MonadReader env m, HasEnvConfig env, MonadIO m, MonadThrow m) => InstallLocation -> m [PackageIdentifier] #

Get all of the installed executables

buildCacheTimes :: BuildCache -> Map FilePath FileCacheInfo #

Modification times of files.

tryGetFlagCache :: (MonadIO m, MonadThrow m, MonadReader env m, HasEnvConfig env) => Installed -> m (Maybe ConfigCache) #

Loads the flag cache for the given installed extra-deps

deleteCaches :: (MonadIO m, MonadReader env m, MonadCatch m, HasEnvConfig env) => Path Abs Dir -> m () #

Delete the caches for the project.

markExeInstalled :: (MonadReader env m, HasEnvConfig env, MonadIO m, MonadThrow m) => InstallLocation -> PackageIdentifier -> m () #

Mark the given executable as installed

markExeNotInstalled :: (MonadReader env m, HasEnvConfig env, MonadIO m, MonadCatch m) => InstallLocation -> PackageIdentifier -> m () #

Mark the given executable as not installed

writeFlagCache :: (MonadIO m, MonadReader env m, HasEnvConfig env, MonadThrow m) => Installed -> ConfigCache -> m () #

writeBuildCache :: (MonadIO m, MonadReader env m, MonadThrow m, HasEnvConfig env) => Path Abs Dir -> Map FilePath FileCacheInfo -> m () #

Write the dirtiness cache for this package's files.

writeConfigCache :: (MonadIO m, MonadReader env m, MonadThrow m, HasEnvConfig env) => Path Abs Dir -> ConfigCache -> m () #

Write the dirtiness cache for this package's configuration.

writeCabalMod :: (MonadIO m, MonadReader env m, MonadThrow m, HasEnvConfig env) => Path Abs Dir -> ModTime -> m () #

setTestSuccess :: (MonadIO m, MonadThrow m, MonadReader env m, HasEnvConfig env) => Path Abs Dir -> m () #

Mark a test suite as having succeeded

unsetTestSuccess :: (MonadIO m, MonadThrow m, MonadReader env m, HasEnvConfig env) => Path Abs Dir -> m () #

Mark a test suite as not having succeeded

checkTestSuccess :: (MonadIO m, MonadThrow m, MonadReader env m, HasEnvConfig env) => Path Abs Dir -> m Bool #

Check if the test suite already passed

writePrecompiledCache #

Arguments

:: (MonadThrow m, MonadReader env m, HasEnvConfig env, MonadIO m, MonadLogger m) 
=> BaseConfigOpts 
-> PackageIdentifier 
-> ConfigureOpts 
-> Set GhcPkgId

dependencies

-> Installed

library

-> Set Text

executables

-> m () 

Write out information about a newly built package

readPrecompiledCache #

Arguments

:: (MonadThrow m, MonadReader env m, HasEnvConfig env, MonadIO m, MonadLogger m) 
=> PackageIdentifier

target package

-> ConfigureOpts 
-> Set GhcPkgId

dependencies

-> m (Maybe PrecompiledCache) 

Check the cache for a precompiled package matching the given configuration.