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
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.
Instances
Show FileMap # | |
ReportSchemaErrors m => FromJSON m FileMap # | |
Defined in Hackage.Security.TUF.FileMap | |
Monad m => ToJSON m FileMap # | |
Defined in Hackage.Security.TUF.FileMap |
data TargetPath #
Entries in FileMap
either talk about the repository or the index
Instances
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 |
Instances
Show FileChange # | |
Defined in Hackage.Security.TUF.FileMap showsPrec :: Int -> FileChange -> ShowS # show :: FileChange -> String # showList :: [FileChange] -> ShowS # |
:: FileMap | Old |
-> FileMap | New |
-> Map TargetPath FileChange |