ormolu-0.1.4.0: A formatter for Haskell source code
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ormolu.Diff.Text

Description

This module allows us to diff two Text values.

Synopsis

Documentation

data TextDiff Source #

Result of diffing two Texts.

Instances

Instances details
Eq TextDiff Source # 
Instance details

Defined in Ormolu.Diff.Text

Show TextDiff Source # 
Instance details

Defined in Ormolu.Diff.Text

diffText Source #

Arguments

:: Text

Text before

-> Text

Text after

-> FilePath

Path to use

-> Maybe TextDiff

The resulting diff or Nothing if the inputs are identical

Diff two texts and produce a TextDiff.

printTextDiff :: Handle -> TextDiff -> IO () Source #

Print the given TextDiff to Handle. This function tries to mimic the style of git diff.