Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class (Apply p, Commute p, Invert p) => Patchy p
- class Apply p where
- type ApplyState p :: (* -> *) -> *
- apply :: ApplyMonad m (ApplyState p) => p wX wY -> m ()
- class Commute p where
- class Invert p where
- invert :: p wX wY -> p wY wX
- class PatchInspect p where
- listTouchedFiles :: p wX wY -> [FilePath]
- hunkMatches :: (ByteString -> Bool) -> p wX wY -> Bool
- class ReadPatch p where
- readPatch' :: ParserM m => m (Sealed (p wX))
- showPatch :: ShowPatchBasic p => p wX wY -> Doc
- class ShowPatchBasic p => ShowPatch p where
- showNicely :: p wX wY -> Doc
- showContextPatch :: (Monad m, ApplyMonadTrans m (ApplyState p), ApplyMonad m (ApplyState p)) => p wX wY -> m Doc
- description :: p wX wY -> Doc
- summary :: p wX wY -> Doc
- summaryFL :: FL p wX wY -> Doc
- thing :: p wX wY -> String
- things :: p wX wY -> String
Documentation
class (Apply p, Commute p, Invert p) => Patchy p Source
Patchy DummyPatch Source | |
Apply p => Patchy (RebaseName p) Source | |
PrimPatch prim => Patchy (RealPatch prim) Source | |
(Patchy p, NameHack p, (~) ((* -> *) -> *) (ApplyState p) Tree) => Patchy (PatchInfoAnd p) Source | |
(PrimPatchBase p, PatchListFormat p, Patchy p, FromPrim p, Conflict p, Effect p, CommuteNoConflicts p, IsHunk p) => Patchy (Rebasing p) Source | |
(PrimPatchBase p, Apply p, (~) ((* -> *) -> *) (ApplyState p) (ApplyState (PrimOf p)), Invert p) => Patchy (RebaseChange p) Source | |
(PrimPatchBase p, PatchListFormat p, Conflict p, FromPrim p, Effect p, CommuteNoConflicts p, IsHunk p, Patchy p, (~) ((* -> *) -> *) (ApplyState p) (ApplyState (PrimOf p)), NameHack p) => Patchy (RebaseSelect p) Source |
type ApplyState p :: (* -> *) -> * Source
apply :: ApplyMonad m (ApplyState p) => p wX wY -> m () Source
Apply DummyPatch Source | |
Apply p => Apply (RL p) Source | |
Apply p => Apply (FL p) Source | |
Apply p => Apply (Named p) Source | |
Apply p => Apply (RebaseName p) Source | |
(PrimPatchBase p, Apply p, (~) ((* -> *) -> *) (ApplyState p) (ApplyState (PrimOf p))) => Apply (RebaseFixup p) Source | |
PrimPatch prim => Apply (RealPatch prim) Source | |
Apply p => Apply (PatchInfoAnd p) Source | |
Apply p => Apply (Rebasing p) Source | |
(PrimPatchBase p, Invert p, Apply p, (~) ((* -> *) -> *) (ApplyState p) (ApplyState (PrimOf p))) => Apply (RebaseChange p) Source | |
(PrimPatchBase p, Invert p, Apply p, (~) ((* -> *) -> *) (ApplyState p) (ApplyState (PrimOf p))) => Apply (RebaseSelect p) Source |
Commute represents things that can be (possibly) commuted.
Commute DummyPatch Source | |
Commute p => Commute (RL p) Source | |
Commute p => Commute (FL p) Source | |
(Commute p, NameHack p) => Commute (Named p) Source | |
Commute (RebaseName p) Source | |
PrimPatchBase p => Commute (RebaseFixup p) Source | |
PrimPatch prim => Commute (RealPatch prim) Source | |
(Commute p, NameHack p) => Commute (PatchInfoAnd p) Source | |
(PrimPatchBase p, FromPrim p, Effect p, Invert p, Commute p) => Commute (Rebasing p) Source | |
Commute (RebaseChange p) Source | |
(PrimPatchBase p, FromPrim p, Effect p, Commute p, Invert p, NameHack p) => Commute (RebaseSelect p) Source | |
Commute p => Commute (LabelledPatch p) Source |
Invert Prim Source | |
Invert Prim Source | |
Invert DummyPatch Source | |
Invert p => Invert (RL p) Source | |
Invert p => Invert (FL p) Source | |
Invert p => Invert (Named p) Source | |
Invert (RebaseName p) Source | |
Invert (PrimOf p) => Invert (RebaseFixup p) Source | |
Invert prim => Invert (RealPatch prim) Source | |
Invert p => Invert (PatchInfoAnd p) Source | |
Invert p => Invert (Rebasing p) Source | |
Invert (RebaseChange p) Source | |
Invert p => Invert (RebaseSelect p) Source | |
Invert p => Invert (LabelledPatch p) Source |
class PatchInspect p where Source
listTouchedFiles :: p wX wY -> [FilePath] Source
hunkMatches :: (ByteString -> Bool) -> p wX wY -> Bool Source
PatchInspect Prim Source | |
PatchInspect Prim Source | |
PatchInspect DummyPatch Source | |
PatchInspect p => PatchInspect (RL p) Source | |
PatchInspect p => PatchInspect (FL p) Source | |
PatchInspect p => PatchInspect (Named p) Source | |
PatchInspect (RebaseName p) Source | |
PatchInspect (PrimOf p) => PatchInspect (RebaseFixup p) Source | |
PatchInspect prim => PatchInspect (RealPatch prim) Source | |
PatchInspect p => PatchInspect (PatchInfoAnd p) Source | |
(PrimPatchBase p, PatchInspect p) => PatchInspect (Rebasing p) Source | |
(PrimPatchBase p, PatchInspect p) => PatchInspect (RebaseChange p) Source | |
(PrimPatchBase p, PatchInspect p) => PatchInspect (RebaseSelect p) Source | |
PatchInspect p => PatchInspect (LabelledPatch p) Source |
class ReadPatch p where Source
readPatch' :: ParserM m => m (Sealed (p wX)) Source
ReadPatch DummyPatch Source | |
(ReadPatch p, PatchListFormat p) => ReadPatch (RL p) Source | |
(ReadPatch p, PatchListFormat p) => ReadPatch (FL p) Source | |
ReadPatch p => ReadPatch (Bracketed p) Source | |
(ReadPatch p, PatchListFormat p) => ReadPatch (Named p) Source | |
ReadPatch (RebaseName p) Source | |
PrimPatch prim => ReadPatch (RealPatch prim) Source | |
(ReadPatch p, PatchListFormat p) => ReadPatch (PatchInfoAnd p) Source | |
(PrimPatchBase p, PatchListFormat p, ReadPatch p) => ReadPatch (RebaseItem p) Source | |
(PrimPatchBase p, PatchListFormat p, ReadPatch p) => ReadPatch (Rebasing p) Source | |
ReadPatch (RebaseChange p) Source | |
ReadPatch p => ReadPatch (RebaseSelect p) Source |
showPatch :: ShowPatchBasic p => p wX wY -> Doc Source
class ShowPatchBasic p => ShowPatch p where Source
showNicely :: p wX wY -> Doc Source
showContextPatch :: (Monad m, ApplyMonadTrans m (ApplyState p), ApplyMonad m (ApplyState p)) => p wX wY -> m Doc Source
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 wX wY -> Doc Source
summary :: p wX wY -> Doc Source
summaryFL :: FL p wX wY -> Doc Source