Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class Repair p where
- class Apply p => RepairToFL p where
- mapMaybeSnd :: (a -> b) -> Maybe (c, a) -> Maybe (c, b)
- class Check p where
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 #
RepairToFL p => Repair (FL p) Source # | |
RepairToFL p => Repair (Named p) Source # | |
Apply p => Repair (Suspended p) Source # | |
RepairToFL p => Repair (WrappedNamed rt p) Source # | |
RepairToFL p => Repair (PatchInfoAnd rt p) Source # | |
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.
applyAndTryToFixFL :: ApplyMonad (ApplyState p) m => p wX wY -> m (Maybe (String, FL p wX wY)) Source #
RepairToFL DummyPatch Source # | |
Apply p => RepairToFL (Suspended p) Source # | |
PrimPatch prim => RepairToFL (RepoPatchV2 prim) Source # | |
mapMaybeSnd :: (a -> b) -> Maybe (c, a) -> Maybe (c, b) Source #
isInconsistent :: p wX wY -> Maybe Doc Source #
Check DummyPatch Source # | |
Check p => Check (RL p) Source # | |
Check p => Check (FL p) Source # | |
Check (RepoPatchV1 prim) Source # | |
Check p => Check (Named p) Source # | |
Check p => Check (RebaseItem p) Source # | |
Check p => Check (Suspended p) Source # | |
PrimPatch prim => Check (RepoPatchV2 prim) Source # | |
Check p => Check (WrappedNamed rt p) Source # | |