Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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 AnchoredPath
s, yielding the new set of
AnchoredPath
s and FileMod
s
This is used to track changes to files
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 |