| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Darcs.Patch.Index.Monad
Synopsis
- withPatchMods :: FileModMonad a -> Set AnchoredPath -> FileModState
- applyToFileMods :: (Apply p, ApplyState p ~ Tree) => p wX wY -> Set AnchoredPath -> FileModState
- data FileMod a
- = PTouch a
- | PCreateFile a
- | PCreateDir a
- | PRename a a
- | PRemove a
- | PDuplicateTouch a
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
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 |