Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class Repair p where
- applyAndTryToFix :: ApplyMonad (ApplyState p) m => p wX wY -> m (Maybe (String, p wX wY))
- class Apply p => RepairToFL p where
- applyAndTryToFixFL :: ApplyMonad (ApplyState p) m => p wX wY -> m (Maybe (String, FL p wX wY))
- mapMaybeSnd :: (a -> b) -> Maybe (c, a) -> Maybe (c, b)
- class Check p where
- isInconsistent :: p wX wY -> Maybe Doc
Documentation
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.
applyAndTryToFix :: ApplyMonad (ApplyState p) m => 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, RepoPatchV2)
There is a default so that patch types with no current legacy problems don't need to
have an implementation.
Nothing
applyAndTryToFixFL :: ApplyMonad (ApplyState p) m => p wX wY -> m (Maybe (String, FL p wX wY)) Source #
Instances
mapMaybeSnd :: (a -> b) -> Maybe (c, a) -> Maybe (c, b) Source #
Nothing
isInconsistent :: p wX wY -> Maybe Doc Source #
Instances
Check DummyPatch Source # | |
Defined in Darcs.Patch.Dummy isInconsistent :: DummyPatch wX wY -> Maybe Doc Source # | |
Check p => Check (RL p) Source # | |
Defined in Darcs.Patch.Repair | |
Check p => Check (FL p) Source # | |
Defined in Darcs.Patch.Repair | |
Check (RepoPatchV1 prim) Source # | |
Defined in Darcs.Patch.V1.Core isInconsistent :: RepoPatchV1 prim wX wY -> Maybe Doc Source # | |
Check p => Check (Named p) Source # | |
Defined in Darcs.Patch.Named | |
Check p => Check (RebaseItem p) Source # | |
Defined in Darcs.Patch.Rebase.Item isInconsistent :: RebaseItem p wX wY -> Maybe Doc Source # | |
Check p => Check (Suspended p) Source # | |
Defined in Darcs.Patch.Rebase.Container | |
PrimPatch prim => Check (RepoPatchV2 prim) Source # | |
Defined in Darcs.Patch.V2.RepoPatch isInconsistent :: RepoPatchV2 prim wX wY -> Maybe Doc Source # | |
Check p => Check (WrappedNamed rt p) Source # | |
Defined in Darcs.Patch.Named.Wrapped isInconsistent :: WrappedNamed rt p wX wY -> Maybe Doc Source # |