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

Safe Haskell | None

Darcs.Patch.Show

# Documentation

class ShowPatchBasic p where

Methods

showPatch :: p x y -> Doc

Instances

ShowPatchBasic Prim |
ShowPatchBasic Prim |
ShowPatchBasic DummyPatch |
(PatchListFormat p, ShowPatchBasic p) => ShowPatchBasic (RL p) |
(PatchListFormat p, ShowPatchBasic p) => ShowPatchBasic (FL p) |
ShowPatchBasic p => ShowPatchBasic (Bracketed p) |
PrimPatch prim => ShowPatchBasic (Patch prim) |
(PatchListFormat p, ShowPatchBasic p) => ShowPatchBasic (Named p) |
(PatchListFormat p, ShowPatchBasic p) => ShowPatchBasic (PatchInfoAnd p) |
PrimPatch prim => ShowPatchBasic (RealPatch prim) |

class ShowPatchBasic p => ShowPatch p where

Methods

showNicely :: p x y -> Doc

showContextPatch :: (Monad m, ApplyMonadTrans m (ApplyState p), ApplyMonad m (ApplyState p)) => p x y -> m Doc

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 x y -> Doc

summary :: p x y -> Doc

summaryFL :: FL p x y -> Doc

thing :: p x y -> String

things :: p x y -> String

Instances

~ ((* -> *) -> *) (ApplyState Prim) Tree => ShowPatch Prim |
ShowPatch Prim |
ShowPatch DummyPatch |
(Apply p, IsHunk p, PatchListFormat p, ShowPatch p) => ShowPatch (RL p) |
(Apply p, IsHunk p, PatchListFormat p, ShowPatch p) => ShowPatch (FL p) |
PrimPatch prim => ShowPatch (Patch prim) |
(Apply p, CommuteNoConflicts p, Conflict p, IsHunk p, PatchListFormat p, PrimPatchBase p, ShowPatch p) => ShowPatch (Named p) |
(Apply p, Conflict p, CommuteNoConflicts p, IsHunk p, PatchListFormat p, PrimPatchBase p, ShowPatch p, ~ ((* -> *) -> *) (ApplyState p) Tree) => ShowPatch (PatchInfoAnd p) |
PrimPatch prim => ShowPatch (RealPatch prim) |

showNamedPrefix :: PatchInfo -> [PatchInfo] -> Doc

writePatch :: ShowPatchBasic p => FilePath -> p x y -> IO ()

gzWritePatch :: ShowPatchBasic p => FilePath -> p x y -> IO ()

formatFileName :: FileNameFormat -> FileName -> Doc