Safe Haskell | None |
---|---|
Language | Haskell2010 |
Darcs.Repository.Inventory
Synopsis
- data Inventory = Inventory {}
- type HeadInventory = (PristineHash, Inventory)
- type InventoryEntry = (PatchInfo, PatchHash)
- class ValidHash a where
- data InventoryHash
- data PatchHash
- data PristineHash
- inventoryPatchNames :: Inventory -> [String]
- parseInventory :: ByteString -> Maybe Inventory
- showInventory :: Inventory -> Doc
- showInventoryPatches :: [InventoryEntry] -> Doc
- showInventoryEntry :: InventoryEntry -> Doc
- emptyInventory :: Inventory
- pokePristineHash :: String -> ByteString -> Doc
- peekPristineHash :: ByteString -> String
- skipPristineHash :: ByteString -> ByteString
- pristineName :: ByteString
- prop_inventoryParseShow :: Inventory -> Bool
- prop_peekPokePristineHash :: (PristineHash, ByteString) -> Bool
- prop_skipPokePristineHash :: (PristineHash, ByteString) -> Bool
Documentation
type HeadInventory = (PristineHash, Inventory) #
type InventoryEntry = (PatchInfo, PatchHash) #
Minimal complete definition
Instances
ValidHash PristineHash # | |
Defined in Darcs.Repository.Inventory | |
ValidHash PatchHash # | |
Defined in Darcs.Repository.Inventory | |
ValidHash InventoryHash # | |
Defined in Darcs.Repository.Inventory |
data InventoryHash #
Instances
Eq InventoryHash # | |
Defined in Darcs.Repository.Inventory Methods (==) :: InventoryHash -> InventoryHash -> Bool # (/=) :: InventoryHash -> InventoryHash -> Bool # | |
Show InventoryHash # | |
Defined in Darcs.Repository.Inventory Methods showsPrec :: Int -> InventoryHash -> ShowS # show :: InventoryHash -> String # showList :: [InventoryHash] -> ShowS # | |
ValidHash InventoryHash # | |
Defined in Darcs.Repository.Inventory |
data PristineHash #
Instances
Eq PristineHash # | |
Defined in Darcs.Repository.Inventory | |
Show PristineHash # | |
Defined in Darcs.Repository.Inventory Methods showsPrec :: Int -> PristineHash -> ShowS # show :: PristineHash -> String # showList :: [PristineHash] -> ShowS # | |
ValidHash PristineHash # | |
Defined in Darcs.Repository.Inventory |
inventoryPatchNames :: Inventory -> [String] #
parseInventory :: ByteString -> Maybe Inventory #
showInventory :: Inventory -> Doc #
showInventoryPatches :: [InventoryEntry] -> Doc #
showInventoryEntry :: InventoryEntry -> Doc #
pokePristineHash :: String -> ByteString -> Doc #
Replace the pristine hash at the start of a raw, unparsed HeadInventory
or add it if none is present.
peekPristineHash :: ByteString -> String #
skipPristineHash :: ByteString -> ByteString #
skipPristineHash drops the 'pristine: HASH' prefix line, if present.
prop_peekPokePristineHash :: (PristineHash, ByteString) -> Bool #
prop_skipPokePristineHash :: (PristineHash, ByteString) -> Bool #