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

Safe HaskellNone

Darcs.Patch.Repair

Synopsis

Documentation

class Repair p whereSource

Repair and RepairToFL deal with repairing old patches that were were written out due to bugs or that we no longer wish to support. Repair is implemented by collections of patches (FL, Named, PatchInfoAnd) that might need repairing.

Methods

applyAndTryToFix :: ApplyMonad m (ApplyState p) => p x y -> m (Maybe (String, p x y))Source

Instances

class Apply p => RepairToFL p whereSource

RepairToFL is implemented by single patches that can be repaired (Prim, Patch, RealPatch) There is a default so that patch types with no current legacy problems don't need to have an implementation.

Methods

applyAndTryToFixFL :: ApplyMonad m (ApplyState p) => p x y -> m (Maybe (String, FL p x y))Source

mapMaybeSnd :: (a -> b) -> Maybe (c, a) -> Maybe (c, b)Source

class Check p whereSource

Methods

isInconsistent :: p x y -> Maybe DocSource

Instances

Check p => Check (RL p) 
Check p => Check (FL p) 
Check (Patch prim) 
Check p => Check (Named p) 
PrimPatch prim => Check (RealPatch prim)