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 #
Entries in FileMap
either talk about the repository or the index
Eq TargetPath # | |
Ord TargetPath # | |
Show TargetPath # | |
Pretty TargetPath # | |
ReportSchemaErrors m => FromObjectKey m TargetPath # | |
Monad m => ToObjectKey m TargetPath # | |
Standard accessors
(!) :: FileMap -> TargetPath -> FileInfo #
fromList :: [(TargetPath, FileInfo)] -> FileMap #
Convenience accessors
Comparing file maps
data FileChange #
FileChanged FileInfo | File got added or modified; we record the new file info |
FileDeleted | File got deleted |
:: FileMap | Old |
-> FileMap | New |
-> Map TargetPath FileChange |