darcs-2.18.4: a distributed, interactive, smart revision control system
Safe HaskellSafe-Inferred
LanguageHaskell2010

Darcs.Patch.Index.Monad

Synopsis

Documentation

withPatchMods :: FileModMonad a -> Set AnchoredPath -> FileModState Source #

applyToFileMods :: (Apply p, ApplyState p ~ Tree) => p wX wY -> Set AnchoredPath -> FileModState Source #

Apply a patch to set of AnchoredPaths, yielding the new set of AnchoredPaths and FileMods

data FileMod a Source #

This is used to track changes to files

Constructors

PTouch a 
PCreateFile a 
PCreateDir a 
PRename a a 
PRemove a 
PDuplicateTouch a

this is used for duplicate patches that don't have any effect, but we still want to keep track of them

Instances

Instances details
Functor FileMod Source # 
Instance details

Defined in Darcs.Patch.Index.Monad

Methods

fmap :: (a -> b) -> FileMod a -> FileMod b #

(<$) :: a -> FileMod b -> FileMod a #

Show a => Show (FileMod a) Source # 
Instance details

Defined in Darcs.Patch.Index.Monad

Methods

showsPrec :: Int -> FileMod a -> ShowS #

show :: FileMod a -> String #

showList :: [FileMod a] -> ShowS #

Eq a => Eq (FileMod a) Source # 
Instance details

Defined in Darcs.Patch.Index.Monad

Methods

(==) :: FileMod a -> FileMod a -> Bool #

(/=) :: FileMod a -> FileMod a -> Bool #