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

Safe HaskellNone
LanguageHaskell98

Darcs.Patch.Show

Documentation

class ShowPatchBasic p => ShowPatch p where Source

Minimal complete definition

summary, summaryFL

Methods

showNicely :: p x y -> Doc Source

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

summary :: p x y -> Doc Source

summaryFL :: FL p x y -> Doc Source

thing :: p x y -> String Source

things :: p x y -> String Source

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