Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type HashedIO p = StateT (HashDir RW p) IO
- copyHashed :: String -> Cache -> WithWorkingDir -> String -> IO ()
- copyPartialsHashed :: FilePathLike fp => Cache -> String -> [fp] -> IO ()
- cleanHashdir :: Cache -> HashedDir -> [String] -> IO ()
- getHashedFiles :: String -> [String] -> IO [String]
- data RW = RW
- pathsAndContents :: FilePath -> Cache -> String -> IO [(FilePath, ByteString)]
Documentation
copyHashed :: String -> Cache -> WithWorkingDir -> String -> IO () Source #
Grab a whole pristine tree from a hash, and, if asked, write files in the working copy.
copyPartialsHashed :: FilePathLike fp => Cache -> String -> [fp] -> IO () Source #
getHashedFiles :: String -> [String] -> IO [String] Source #
getHashedFiles returns all hash files targeted by files in hashroots in the hashdir directory.
ApplyMonad Tree (HashedIO p) Source # | |
ApplyMonadTree (HashedIO p) Source # | |
type ApplyMonadBase (HashedIO p) Source # | |
pathsAndContents :: FilePath -> Cache -> String -> IO [(FilePath, ByteString)] Source #
Returns a list of pairs (FilePath, (strict) ByteString) of
the pristine tree starting with the hash root
.
path
should be either "." or end with "/"
Separator "/" is used since this function is used to generate
zip archives from pristine trees.