Safe Haskell | None |
---|---|
Language | Haskell2010 |
Information about files
Intended to be double imported
import Hackage.Security.TUF.FileMap (FileMap) import qualified Hackage.Security.TUF.FileMap as FileMap
- 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
Standard accessors
Convenience accessors
Comparing file maps
data FileChange Source #
FileChanged FileInfo | File got added or modified; we record the new file info |
FileDeleted | File got deleted |
:: FileMap | Old |
-> FileMap | New |
-> Map TargetPath FileChange |