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

Safe Haskell | None

Darcs.PrintPatch

Synopsis

- printPatch :: Patchy p => p x y -> IO ()
- contextualPrintPatch :: (Patchy p, ApplyState p ~ Tree) => Tree IO -> p x y -> IO ()
- printPatchPager :: Patchy p => p x y -> IO ()
- printFriendly :: (Patchy p, ApplyState p ~ Tree) => Maybe (Tree IO) -> [DarcsFlag] -> p x y -> IO ()

# Documentation

printPatch :: Patchy p => p x y -> IO ()

`printPatch` prints a patch on standard output.

contextualPrintPatch :: (Patchy p, ApplyState p ~ Tree) => Tree IO -> p x y -> IO ()

`contextualPrintPatch` prints a patch, together with its context, on standard output.

printPatchPager :: Patchy p => p x y -> IO ()

`printPatchPager` runs '$PAGER' and shows a patch in it.

printFriendly :: (Patchy p, ApplyState p ~ Tree) => Maybe (Tree IO) -> [DarcsFlag] -> p x y -> IO ()

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