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

Safe HaskellNone
LanguageHaskell2010

Darcs.Patch.Patchy

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 

class Commute p where Source

Commute represents things that can be (possibly) commuted.

Methods

commute :: (p :> p) wX wY -> Maybe ((p :> p) wX wY) Source

showPatch :: ShowPatchBasic p => p wX wY -> Doc Source

class ShowPatchBasic p => ShowPatch p where Source

Minimal complete definition

summary, summaryFL

Methods

showNicely :: p wX wY -> Doc Source

showContextPatch :: (Monad m, ApplyMonadTrans m (ApplyState p), ApplyMonad m (ApplyState p)) => p wX wY -> m Doc Source

showContextPatch is used to add context to a patch, as diff -u does. Thus, it differs from showPatch only for hunks. It is used for instance before putting it into a bundle. As this unified context is not included in patch representation, this requires access to the tree.

description :: p wX wY -> Doc Source

summary :: p wX wY -> Doc Source

summaryFL :: FL p wX wY -> Doc Source

thing :: p wX wY -> String Source

things :: p wX wY -> String Source