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

Safe Haskell | None
Language | Haskell2010

Darcs.UI.PrintPatch

Synopsis

- contextualPrintPatchWithPager :: (ApplyMonadTrans (ApplyState p) IO, ShowContextPatch p) => ApplyState p IO -> p wX wY -> IO ()
- printContent :: ShowPatch p => p wX wY -> IO ()
- printContentWithPager :: ShowPatch p => p wX wY -> IO ()
- printFriendly :: ShowPatch p => Verbosity -> WithSummary -> p wX wY -> IO ()
- printSummary :: ShowPatch p => p wX wY -> IO ()
- showFriendly :: ShowPatch p => Verbosity -> WithSummary -> p wX wY -> Doc
- showWithSummary :: ShowPatch p => p wX wY -> Doc

# Documentation

contextualPrintPatchWithPager :: (ApplyMonadTrans (ApplyState p) IO, ShowContextPatch p) => ApplyState p IO -> p wX wY -> IO () #

Print a patch, together with its context, on standard output, using a pager.

printContent :: ShowPatch p => p wX wY -> IO () #

printContentWithPager :: ShowPatch p => p wX wY -> IO () #

printFriendly :: ShowPatch p => Verbosity -> WithSummary -> p wX wY -> IO () #

``printFriendly` opts patch` prints `patch` in accordance with the flags in opts, ie, whether `--verbose` or `--summary` were passed at the command-line.

printSummary :: ShowPatch p => p wX wY -> IO () #

showFriendly :: ShowPatch p => Verbosity -> WithSummary -> p wX wY -> Doc #

``showFriendly` flags patch` returns a `Doc` representing the right way to show `patch` given the list `flags` of flags darcs was invoked with.

showWithSummary :: ShowPatch p => p wX wY -> Doc #