| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Hackage.Security.TUF.FileMap
Description
Information about files
Intended to be double imported
import Hackage.Security.TUF.FileMap (FileMap) import qualified Hackage.Security.TUF.FileMap as FileMap
Synopsis
- data FileMap
 - data TargetPath
 - empty :: FileMap
 - lookup :: TargetPath -> FileMap -> Maybe FileInfo
 - (!) :: FileMap -> TargetPath -> FileInfo
 - insert :: TargetPath -> FileInfo -> FileMap -> FileMap
 - fromList :: [(TargetPath, FileInfo)] -> FileMap
 - lookupM :: Monad m => FileMap -> TargetPath -> m FileInfo
 - data FileChange
 - fileMapChanges :: FileMap -> FileMap -> Map TargetPath FileChange
 
Documentation
Mapping from paths to file info
File maps are used in target files; the paths are relative to the location of the target files containing the file map.
data TargetPath Source #
Entries in FileMap either talk about the repository or the index
Constructors
| TargetPathRepo RepoPath | |
| TargetPathIndex IndexPath | 
Instances
Standard accessors
Convenience accessors
Comparing file maps
data FileChange Source #
Constructors
| FileChanged FileInfo | File got added or modified; we record the new file info  | 
| FileDeleted | File got deleted  | 
Instances
| Show FileChange Source # | |
Defined in Hackage.Security.TUF.FileMap Methods showsPrec :: Int -> FileChange -> ShowS # show :: FileChange -> String # showList :: [FileChange] -> ShowS #  | |
Arguments
| :: FileMap | Old  | 
| -> FileMap | New  | 
| -> Map TargetPath FileChange |