| License | BSD-3-Clause |
|---|---|
| Safe Haskell | None |
| Language | GHC2024 |
Stack.Types.Cache
Description
Synopsis
- type FileCache = Map FilePath FileCacheInfo
- newtype BuildFileCache = BuildFileCache {}
- newtype FileCacheInfo = FileCacheInfo {}
- data ConfigCache = ConfigCache {
- configureOpts :: !ConfigureOpts
- deps :: !(Set GhcPkgId)
- components :: !(Set ByteString)
- buildHaddocks :: !Bool
- pkgSrc :: !CachePkgSrc
- pathEnvVar :: !Text
- data CachePkgSrc
- data PrecompiledCache base = PrecompiledCache {}
- data ConfigCacheType
- data Action = UpgradeCheck
Documentation
type FileCache = Map FilePath FileCacheInfo Source #
Type synonym representing caches of files and information about them sufficient to identify if they have changed subsequently.
newtype BuildFileCache Source #
Type representing caches of information about files sufficient to identify if they have changed subsequently. Stored on disk.
Constructors
| BuildFileCache | |
Instances
| FromJSON BuildFileCache Source # | |||||
Defined in Stack.Types.Cache | |||||
| ToJSON BuildFileCache Source # | |||||
Defined in Stack.Types.Cache Methods toJSON :: BuildFileCache -> Value toEncoding :: BuildFileCache -> Encoding toJSONList :: [BuildFileCache] -> Value toEncodingList :: [BuildFileCache] -> Encoding omitField :: BuildFileCache -> Bool | |||||
| NFData BuildFileCache Source # | |||||
Defined in Stack.Types.Cache Methods rnf :: BuildFileCache -> () # | |||||
| Generic BuildFileCache Source # | |||||
Defined in Stack.Types.Cache Associated Types
| |||||
| Show BuildFileCache Source # | |||||
Defined in Stack.Types.Cache Methods showsPrec :: Int -> BuildFileCache -> ShowS show :: BuildFileCache -> String # showList :: [BuildFileCache] -> ShowS | |||||
| Eq BuildFileCache Source # | |||||
Defined in Stack.Types.Cache Methods (==) :: BuildFileCache -> BuildFileCache -> Bool # (/=) :: BuildFileCache -> BuildFileCache -> Bool # | |||||
| type Rep BuildFileCache Source # | |||||
Defined in Stack.Types.Cache type Rep BuildFileCache = D1 ('MetaData "BuildFileCache" "Stack.Types.Cache" "stack-3.9.1-B4Ctg8fkjlTKHjOvS8wzBh" 'True) (C1 ('MetaCons "BuildFileCache" 'PrefixI 'True) (S1 ('MetaSel ('Just "fileCache") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FileCache))) | |||||
newtype FileCacheInfo Source #
Type representing information about a file sufficient to identify if it has changed subsequently.
Constructors
| FileCacheInfo | |
Instances
| FromJSON FileCacheInfo Source # | |||||
Defined in Stack.Types.Cache | |||||
| ToJSON FileCacheInfo Source # | |||||
Defined in Stack.Types.Cache Methods toJSON :: FileCacheInfo -> Value toEncoding :: FileCacheInfo -> Encoding toJSONList :: [FileCacheInfo] -> Value toEncodingList :: [FileCacheInfo] -> Encoding omitField :: FileCacheInfo -> Bool | |||||
| NFData FileCacheInfo Source # | |||||
Defined in Stack.Types.Cache Methods rnf :: FileCacheInfo -> () # | |||||
| Generic FileCacheInfo Source # | |||||
Defined in Stack.Types.Cache Associated Types
| |||||
| Show FileCacheInfo Source # | |||||
Defined in Stack.Types.Cache Methods showsPrec :: Int -> FileCacheInfo -> ShowS show :: FileCacheInfo -> String # showList :: [FileCacheInfo] -> ShowS | |||||
| Eq FileCacheInfo Source # | |||||
Defined in Stack.Types.Cache Methods (==) :: FileCacheInfo -> FileCacheInfo -> Bool # (/=) :: FileCacheInfo -> FileCacheInfo -> Bool # | |||||
| type Rep FileCacheInfo Source # | |||||
Defined in Stack.Types.Cache type Rep FileCacheInfo = D1 ('MetaData "FileCacheInfo" "Stack.Types.Cache" "stack-3.9.1-B4Ctg8fkjlTKHjOvS8wzBh" 'True) (C1 ('MetaCons "FileCacheInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "hash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SHA256))) | |||||
data ConfigCache Source #
Stored in the project's SQLite database to know whether the Cabal configuration has changed or libarary or executable Cabal flags have changed.
Constructors
| ConfigCache | |
Fields
| |
Instances
| NFData ConfigCache Source # | |||||
Defined in Stack.Types.Cache Methods rnf :: ConfigCache -> () # | |||||
| Data ConfigCache Source # | |||||
Defined in Stack.Types.Cache Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ConfigCache -> c ConfigCache # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ConfigCache # toConstr :: ConfigCache -> Constr # dataTypeOf :: ConfigCache -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ConfigCache) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ConfigCache) # gmapT :: (forall b. Data b => b -> b) -> ConfigCache -> ConfigCache # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ConfigCache -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ConfigCache -> r # gmapQ :: (forall d. Data d => d -> u) -> ConfigCache -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> ConfigCache -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> ConfigCache -> m ConfigCache # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ConfigCache -> m ConfigCache # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ConfigCache -> m ConfigCache # | |||||
| Generic ConfigCache Source # | |||||
Defined in Stack.Types.Cache Associated Types
| |||||
| Show ConfigCache Source # | |||||
Defined in Stack.Types.Cache Methods showsPrec :: Int -> ConfigCache -> ShowS show :: ConfigCache -> String # showList :: [ConfigCache] -> ShowS | |||||
| Eq ConfigCache Source # | |||||
Defined in Stack.Types.Cache | |||||
| type Rep ConfigCache Source # | |||||
Defined in Stack.Types.Cache type Rep ConfigCache = D1 ('MetaData "ConfigCache" "Stack.Types.Cache" "stack-3.9.1-B4Ctg8fkjlTKHjOvS8wzBh" 'False) (C1 ('MetaCons "ConfigCache" 'PrefixI 'True) ((S1 ('MetaSel ('Just "configureOpts") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ConfigureOpts) :*: (S1 ('MetaSel ('Just "deps") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set GhcPkgId)) :*: S1 ('MetaSel ('Just "components") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Set ByteString)))) :*: (S1 ('MetaSel ('Just "buildHaddocks") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "pkgSrc") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 CachePkgSrc) :*: S1 ('MetaSel ('Just "pathEnvVar") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text))))) | |||||
data CachePkgSrc Source #
Constructors
| CacheSrcUpstream | |
| CacheSrcLocal FilePath |
Instances
| NFData CachePkgSrc Source # | |||||
Defined in Stack.Types.Cache Methods rnf :: CachePkgSrc -> () # | |||||
| Data CachePkgSrc Source # | |||||
Defined in Stack.Types.Cache Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CachePkgSrc -> c CachePkgSrc # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CachePkgSrc # toConstr :: CachePkgSrc -> Constr # dataTypeOf :: CachePkgSrc -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CachePkgSrc) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CachePkgSrc) # gmapT :: (forall b. Data b => b -> b) -> CachePkgSrc -> CachePkgSrc # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CachePkgSrc -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CachePkgSrc -> r # gmapQ :: (forall d. Data d => d -> u) -> CachePkgSrc -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> CachePkgSrc -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> CachePkgSrc -> m CachePkgSrc # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CachePkgSrc -> m CachePkgSrc # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CachePkgSrc -> m CachePkgSrc # | |||||
| Generic CachePkgSrc Source # | |||||
Defined in Stack.Types.Cache Associated Types
| |||||
| Read CachePkgSrc Source # | |||||
Defined in Stack.Types.Cache Methods readsPrec :: Int -> ReadS CachePkgSrc readList :: ReadS [CachePkgSrc] readPrec :: ReadPrec CachePkgSrc readListPrec :: ReadPrec [CachePkgSrc] | |||||
| Show CachePkgSrc Source # | |||||
Defined in Stack.Types.Cache Methods showsPrec :: Int -> CachePkgSrc -> ShowS show :: CachePkgSrc -> String # showList :: [CachePkgSrc] -> ShowS | |||||
| Eq CachePkgSrc Source # | |||||
Defined in Stack.Types.Cache | |||||
| PersistField CachePkgSrc Source # | |||||
Defined in Stack.Types.Cache Methods toPersistValue :: CachePkgSrc -> PersistValue fromPersistValue :: PersistValue -> Either Text CachePkgSrc | |||||
| PersistFieldSql CachePkgSrc Source # | |||||
Defined in Stack.Types.Cache Methods sqlType :: Proxy CachePkgSrc -> SqlType | |||||
| SymbolToField "pkgSrc" ConfigCacheParent CachePkgSrc | |||||
Defined in Stack.Storage.Project Methods | |||||
| type Rep CachePkgSrc Source # | |||||
Defined in Stack.Types.Cache type Rep CachePkgSrc = D1 ('MetaData "CachePkgSrc" "Stack.Types.Cache" "stack-3.9.1-B4Ctg8fkjlTKHjOvS8wzBh" 'False) (C1 ('MetaCons "CacheSrcUpstream" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CacheSrcLocal" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath))) | |||||
data PrecompiledCache base Source #
Information on a compiled package: the library .conf file (if relevant), the sub-libraries (if present) and all of the executable paths.
Constructors
| PrecompiledCache | |
Instances
| NFData (PrecompiledCache Abs) Source # | |||||
Defined in Stack.Types.Cache Methods rnf :: PrecompiledCache Abs -> () # | |||||
| NFData (PrecompiledCache Rel) Source # | |||||
Defined in Stack.Types.Cache Methods rnf :: PrecompiledCache Rel -> () # | |||||
| Generic (PrecompiledCache base) Source # | |||||
Defined in Stack.Types.Cache Associated Types
Methods from :: PrecompiledCache base -> Rep (PrecompiledCache base) x to :: Rep (PrecompiledCache base) x -> PrecompiledCache base | |||||
| Show (PrecompiledCache base) Source # | |||||
Defined in Stack.Types.Cache Methods showsPrec :: Int -> PrecompiledCache base -> ShowS show :: PrecompiledCache base -> String # showList :: [PrecompiledCache base] -> ShowS | |||||
| Eq (PrecompiledCache base) Source # | |||||
Defined in Stack.Types.Cache Methods (==) :: PrecompiledCache base -> PrecompiledCache base -> Bool # (/=) :: PrecompiledCache base -> PrecompiledCache base -> Bool # | |||||
| type Rep (PrecompiledCache base) Source # | |||||
Defined in Stack.Types.Cache type Rep (PrecompiledCache base) = D1 ('MetaData "PrecompiledCache" "Stack.Types.Cache" "stack-3.9.1-B4Ctg8fkjlTKHjOvS8wzBh" 'False) (C1 ('MetaCons "PrecompiledCache" 'PrefixI 'True) (S1 ('MetaSel ('Just "library") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe (Path base File))) :*: (S1 ('MetaSel ('Just "subLibs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Path base File]) :*: S1 ('MetaSel ('Just "exes") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Path base File])))) | |||||
data ConfigCacheType Source #
Type representing types of cache in the Stack project SQLite database.
Constructors
| ConfigCacheTypeConfig | Cabal configuration cache. |
| ConfigCacheTypeFlagLibrary GhcPkgId | Library Cabal flag cache. |
| ConfigCacheTypeFlagExecutable PackageIdentifier | Executable Cabal flag cache. |
Instances
| Show ConfigCacheType Source # | |
Defined in Stack.Types.Cache Methods showsPrec :: Int -> ConfigCacheType -> ShowS show :: ConfigCacheType -> String # showList :: [ConfigCacheType] -> ShowS | |
| Eq ConfigCacheType Source # | |
Defined in Stack.Types.Cache Methods (==) :: ConfigCacheType -> ConfigCacheType -> Bool # (/=) :: ConfigCacheType -> ConfigCacheType -> Bool # | |
| PersistField ConfigCacheType Source # | |
Defined in Stack.Types.Cache Methods toPersistValue :: ConfigCacheType -> PersistValue fromPersistValue :: PersistValue -> Either Text ConfigCacheType | |
| PersistFieldSql ConfigCacheType Source # | |
Defined in Stack.Types.Cache Methods sqlType :: Proxy ConfigCacheType -> SqlType | |
| SymbolToField "type" ConfigCacheParent ConfigCacheType | |
Defined in Stack.Storage.Project | |
Type representing actions for which the last time the action was performed should be cached.
Constructors
| UpgradeCheck |