Safe Haskell | None |
---|---|
Language | Haskell2010 |
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) Source #
type InventoryEntry = (PatchInfo, PatchHash) Source #
class ValidHash a where Source #
getValidHash :: a -> String Source #
mkValidHash :: String -> a Source #
Instances
ValidHash PristineHash Source # | |
Defined in Darcs.Repository.Inventory getValidHash :: PristineHash -> String Source # mkValidHash :: String -> PristineHash Source # | |
ValidHash PatchHash Source # | |
Defined in Darcs.Repository.Inventory getValidHash :: PatchHash -> String Source # mkValidHash :: String -> PatchHash Source # | |
ValidHash InventoryHash Source # | |
Defined in Darcs.Repository.Inventory getValidHash :: InventoryHash -> String Source # mkValidHash :: String -> InventoryHash Source # |
data InventoryHash Source #
Instances
Eq InventoryHash Source # | |
Defined in Darcs.Repository.Inventory (==) :: InventoryHash -> InventoryHash -> Bool # (/=) :: InventoryHash -> InventoryHash -> Bool # | |
Show InventoryHash Source # | |
Defined in Darcs.Repository.Inventory showsPrec :: Int -> InventoryHash -> ShowS # show :: InventoryHash -> String # showList :: [InventoryHash] -> ShowS # | |
ValidHash InventoryHash Source # | |
Defined in Darcs.Repository.Inventory getValidHash :: InventoryHash -> String Source # mkValidHash :: String -> InventoryHash Source # |
data PristineHash Source #
Instances
Eq PristineHash Source # | |
Defined in Darcs.Repository.Inventory (==) :: PristineHash -> PristineHash -> Bool # (/=) :: PristineHash -> PristineHash -> Bool # | |
Show PristineHash Source # | |
Defined in Darcs.Repository.Inventory showsPrec :: Int -> PristineHash -> ShowS # show :: PristineHash -> String # showList :: [PristineHash] -> ShowS # | |
ValidHash PristineHash Source # | |
Defined in Darcs.Repository.Inventory getValidHash :: PristineHash -> String Source # mkValidHash :: String -> PristineHash Source # |
inventoryPatchNames :: Inventory -> [String] Source #
showInventory :: Inventory -> Doc Source #
showInventoryPatches :: [InventoryEntry] -> Doc Source #
pokePristineHash :: PristineHash -> ByteString -> Doc Source #
Replace the pristine hash at the start of a raw, unparsed HeadInventory
or add it if none is present.
skipPristineHash :: ByteString -> ByteString Source #
skipPristineHash drops the 'pristine: HASH' prefix line, if present.