BSD-3-Clause licensed by Christoph Hermann
Maintained by [email protected]
This version can be pinned in stack with:pretty-diff-0.4.0.3@sha256:5f3002369eb76bbee3d94f42c05b7b79ee6a74495b7b7a2e85f166cee91397ae,1493

Module documentation for 0.4.0.3

pretty-diff

Pretty printing a diff of two values.

Usage

import qualified Pretty.Diff as Diff
import Data.Default (def)

Diff.pretty def "1234" "_23"

Will create a string that looks like this:

 ▼ ▼
"1234"
╷
│
╵
"_23"
 ▲

Changes

0.4.0.3

  • more small fix

0.4.0.2

  • small fix for different line number count

0.4.0.1

  • small fix for smaller diff context

0.4.0.0

  • pretty/above/below take Text instead of Show a allowing the user to decide how to turn stuff into a string.
  • pretty render multiline input nicely
    • config takes a multilineContext to param to specify how much around the diff to

0.3.0.0

  • I messed this release up :-( 0.4.0.0 is correct.

0.2.0.3

  • Relax version bounds to support tasty-1.4

0.2.0.2

  • Relax version bounds to support Diff-0.4

0.2.0.1

  • Relax version bounds to support tasty-1.3.x and Diff-0.4

0.1.0.0

  • Initial implementation.