Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Darcs.Repository.Inventory
Synopsis
- data Inventory = Inventory {}
- type HeadInventory = (PristineHash, Inventory)
- type InventoryEntry = (PatchInfo, PatchHash)
- class ValidHash a where
- getValidHash :: a -> String
- mkValidHash :: String -> a
- data InventoryHash
- data PatchHash
- data PristineHash
- inventoryPatchNames :: Inventory -> [String]
- parseInventory :: ByteString -> Either String Inventory
- parseHeadInventory :: ByteString -> Either String HeadInventory
- showInventory :: Inventory -> Doc
- showInventoryPatches :: [InventoryEntry] -> Doc
- showInventoryEntry :: InventoryEntry -> Doc
- emptyInventory :: Inventory
- pokePristineHash :: PristineHash -> ByteString -> Doc
- peekPristineHash :: ByteString -> PristineHash
- 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) #
Instances
ValidHash InventoryHash # | |
Defined in Darcs.Repository.Inventory | |
ValidHash PatchHash # | |
Defined in Darcs.Repository.Inventory | |
ValidHash PristineHash # | |
Defined in Darcs.Repository.Inventory |
data InventoryHash #
Instances
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 | |
Eq InventoryHash # | |
Defined in Darcs.Repository.Inventory Methods (==) :: InventoryHash -> InventoryHash -> Bool # (/=) :: InventoryHash -> InventoryHash -> Bool # |
data PristineHash #
Instances
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 | |
Eq PristineHash # | |
Defined in Darcs.Repository.Inventory |
inventoryPatchNames :: Inventory -> [String] #
showInventory :: Inventory -> Doc #
showInventoryPatches :: [InventoryEntry] -> Doc #
showInventoryEntry :: InventoryEntry -> Doc #
pokePristineHash :: PristineHash -> ByteString -> Doc #
Replace the pristine hash at the start of a raw, unparsed HeadInventory
or add it if none is present.
skipPristineHash :: ByteString -> ByteString #
skipPristineHash drops the 'pristine: HASH' prefix line, if present.
prop_peekPokePristineHash :: (PristineHash, ByteString) -> Bool #
prop_skipPokePristineHash :: (PristineHash, ByteString) -> Bool #