Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- module Darcs.Repository.Inventory.Format
- readPatchesFromInventoryFile :: (PatchListFormat p, ReadPatch p) => FilePath -> Repository rt p wU wR -> IO (PatchSet p Origin wS)
- readPatchesFromInventory :: (PatchListFormat p, ReadPatch p) => Cache -> Inventory -> IO (SealedPatchSet p Origin)
- readSinglePatch :: ReadPatch p => Cache -> PatchInfo -> PatchHash -> IO (Sealed (p wX))
- readOneInventory :: ReadPatch p => Cache -> FilePath -> IO (Sealed (RL (PatchInfoAndG p) wX))
- writeInventory :: RepoPatch p => String -> Cache -> PatchSet p Origin wX -> IO InventoryHash
- writePatchIfNecessary :: RepoPatch p => Cache -> PatchInfoAnd p wX wY -> IO InventoryEntry
- writeHashFile :: ValidHash h => Cache -> Doc -> IO h
Documentation
readPatchesFromInventoryFile :: (PatchListFormat p, ReadPatch p) => FilePath -> Repository rt p wU wR -> IO (PatchSet p Origin wS) Source #
Read a PatchSet
starting with a specific inventory inside a Repository
.
readPatchesFromInventory :: (PatchListFormat p, ReadPatch p) => Cache -> Inventory -> IO (SealedPatchSet p Origin) Source #
readOneInventory :: ReadPatch p => Cache -> FilePath -> IO (Sealed (RL (PatchInfoAndG p) wX)) Source #
writeInventory :: RepoPatch p => String -> Cache -> PatchSet p Origin wX -> IO InventoryHash Source #
writePatchIfNecessary :: RepoPatch p => Cache -> PatchInfoAnd p wX wY -> IO InventoryEntry Source #
Write a PatchInfoAnd
to disk and return an InventoryEntry
i.e. the
patch info and hash. However, if we patch already contains a hash, assume it
has already been written to disk at some point and merely return the info
and hash.
writeHashFile :: ValidHash h => Cache -> Doc -> IO h Source #
Wrapper around writeFileUsingCache
that takes a Doc
instead of a
ByteString
.