| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Darcs.Patch.Show
Documentation
class ShowPatchBasic p where #
Minimal complete definition
Instances
| ShowPatchBasic DummyPatch # | |
| (PatchListFormat p, ShowPatchBasic p) => ShowPatchBasic (Named p) # | |
| ShowPatchBasic (RebaseName p) # | |
| (PrimPatchBase p, PatchListFormat p, ShowPatchBasic p) => ShowPatchBasic (RebaseItem p) # | |
| (PrimPatchBase p, PatchListFormat p, ShowPatchBasic p) => ShowPatchBasic (Suspended p) # | |
| PrimPatch prim => ShowPatchBasic (RepoPatchV2 prim) # | |
| (PrimPatchBase p, PatchListFormat p, ShowPatchBasic p) => ShowPatchBasic (RebaseChange p) # | |
| (PrimPatchBase p, PatchListFormat p, ShowPatchBasic p) => ShowPatchBasic (RebaseSelect p) # | |
| (ShowPatchBasic p, PatchListFormat p) => ShowPatchBasic (WrappedNamed rt p) # | |
| (PatchListFormat p, ShowPatchBasic p) => ShowPatchBasic (PatchInfoAnd rt p) # | |
class ShowPatchBasic p => ShowPatch p where #
Methods
showNicely :: p wX wY -> Doc #
showContextPatch :: (Monad m, ApplyMonad (ApplyState p) m) => p wX wY -> 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 wX wY -> Doc #
Instances
showNamedPrefix :: PatchInfo -> [PatchInfo] -> Doc #
formatFileName :: FileNameFormat -> FileName -> Doc #