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

Safe HaskellNone



class ShowPatchBasic p => ShowPatch p where


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

summary :: p wX wY -> Doc

summaryFL :: FL p wX wY -> Doc

thing :: p wX wY -> String

things :: p wX wY -> String