darcs-2.10.2: a distributed, interactive, smart revision control system

Copyright2002-2005 David Roundy
LicenseGPL
Maintainerdarcs-devel@darcs.net
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Darcs.Patch.Apply

Description

 

Synopsis

Documentation

class Apply p where Source

Associated Types

type ApplyState p :: (* -> *) -> * Source

Methods

apply :: ApplyMonad m (ApplyState p) => p wX wY -> m () Source

Instances

Apply DummyPatch Source 
Apply p => Apply (RL p) Source 
Apply p => Apply (FL p) Source 
Apply p => Apply (Named p) Source 
Apply p => Apply (RebaseName p) Source 
(PrimPatchBase p, Apply p, (~) ((* -> *) -> *) (ApplyState p) (ApplyState (PrimOf p))) => Apply (RebaseFixup p) Source 
PrimPatch prim => Apply (RealPatch prim) Source 
Apply p => Apply (PatchInfoAnd p) Source 
Apply p => Apply (Rebasing p) Source 
(PrimPatchBase p, Invert p, Apply p, (~) ((* -> *) -> *) (ApplyState p) (ApplyState (PrimOf p))) => Apply (RebaseChange p) Source 
(PrimPatchBase p, Invert p, Apply p, (~) ((* -> *) -> *) (ApplyState p) (ApplyState (PrimOf p))) => Apply (RebaseSelect p) Source 

applyToTree :: (Apply p, Functor m, Monad m, ApplyState p ~ Tree) => p wX wY -> Tree m -> m (Tree m) Source

Apply a patch to a Tree, yielding a new Tree.

applyToState :: forall p m wX wY. (Apply p, ApplyMonadTrans m (ApplyState p)) => p wX wY -> ApplyState p m -> m (ApplyState p m) Source

applyToFileMods :: (Apply p, ApplyState p ~ Tree) => p wX wY -> Set FileName -> (Set FileName, [PatchMod FileName]) Source

Apply a patch to set of FileNames, yielding the new set of FileNames and PatchMods

effectOnFilePaths :: (Apply p, ApplyState p ~ Tree) => p wX wY -> [FilePath] -> [FilePath] Source