darcs-beta-2.7.98.1: a distributed, interactive, smart revision control system

Darcs.Patch.Patchy

Synopsis

Documentation

class Apply p whereSource

Methods

apply :: ApplyMonad m => p x y -> m ()Source

Instances

Apply DummyPatch 
Apply Prim 
Apply p => Apply (RL p) 
Apply p => Apply (FL p) 
PrimPatch prim => Apply (Patch prim) 
Apply p => Apply (Named p) 
Apply p => Apply (PatchInfoAnd p) 
PrimPatch prim => Apply (RealPatch prim) 

class Commute p whereSource

Things that can commute.

Methods

commute :: (p :> p) x y -> Maybe ((p :> p) x y)Source

Instances

Commute DummyPatch 
Commute Prim 
Commute p => Commute (RL p) 
Commute p => Commute (FL p) 
PrimPatch prim => Commute (Patch prim) 
Commute p => Commute (Named p) 
Commute p => Commute (PatchChoice p) 
Commute p => Commute (TaggedPatch p) 
Commute p => Commute (PatchInfoAnd p) 
PrimPatch prim => Commute (RealPatch prim) 

class Invert p whereSource

Methods

invert :: p x y -> p y xSource

Instances

Invert DummyPatch 
Invert Prim 
(Commute p, Invert p) => Invert (RL p) 
(Invert p, Commute p) => Invert (FL p) 
Invert prim => Invert (Patch prim) 
(Commute p, Invert p) => Invert (Named p) 
Invert p => Invert (TaggedPatch p) 
(Commute p, Invert p) => Invert (PatchInfoAnd p) 
Invert prim => Invert (RealPatch prim) 

class ShowPatchBasic p => ShowPatch p whereSource

Methods

showNicely :: p x y -> DocSource

showContextPatch :: p x y -> TreeIO DocSource

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 x y -> DocSource

summary :: p x y -> DocSource

summaryFL :: FL p x y -> DocSource

thing :: p x y -> StringSource

things :: p x y -> StringSource