darcs

Safe HaskellSafe-Infered

Darcs.Patch.Show

Documentation

class ShowPatchBasic p => ShowPatch p where

Methods

showNicely :: p -> Doc

showContextPatch :: (Monad m, ApplyMonadTrans m (ApplyState p), ApplyMonad m (ApplyState p)) => p -> 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 -> Doc

summary :: p -> Doc

summaryFL :: FL p -> Doc

thing :: p -> String

things :: p -> String