Ormolu.Diff.Text
Description
This module allows us to diff two Text values.
Text
data TextDiff Source #
Result of diffing two Texts.
Defined in Ormolu.Diff.Text
Methods
(==) :: TextDiff -> TextDiff -> Bool #
(/=) :: TextDiff -> TextDiff -> Bool #
showsPrec :: Int -> TextDiff -> ShowS #
show :: TextDiff -> String #
showList :: [TextDiff] -> ShowS #
diffText Source #
Arguments
Text before
Text after
Path to use
The resulting diff or Nothing if the inputs are identical
Nothing
Diff two texts and produce a TextDiff.
TextDiff
printTextDiff :: TextDiff -> Term () Source #
Print the given TextDiff as a Term action. This function tries to mimic the style of git diff.
Term
git diff