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

Safe HaskellNone
LanguageHaskell2010

Darcs.Patch.Repair

Synopsis

Documentation

class Repair p where Source

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 wX wY -> m (Maybe (String, p wX wY)) Source

Instances

class Apply p => RepairToFL p where Source

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.

Minimal complete definition

Nothing

Methods

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

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

class Check p where Source

Minimal complete definition

Nothing

Methods

isInconsistent :: p wX wY -> Maybe Doc Source

Instances

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