Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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
- 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
Instances
Standard accessors
Comparing file maps
data FileChange Source #
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 showsPrec :: Int -> FileChange -> ShowS # show :: FileChange -> String # showList :: [FileChange] -> ShowS # |
:: FileMap | Old |
-> FileMap | New |
-> Map TargetPath FileChange |