pretty-diff: Pretty printing a diff of two values.

[ bsd3, diffing, library ] [ Propose Tags ] [ Report a vulnerability ]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.2.0.0, 0.2.0.1, 0.2.0.2, 0.2.0.3, 0.3.0.0, 0.4.0.0, 0.4.0.1, 0.4.0.2, 0.4.0.3
Change log CHANGELOG.md
Dependencies base (>=4.10.1.0 && <5), data-default (>=0.7 && <0.8), Diff (>=0.3 && <0.5), text (>=1.2 && <1.3) [details]
License BSD-3-Clause
Copyright 2020 Christoph Hermann
Author Christoph Hermann
Maintainer schtoeffel@gmail.com
Category Diffing
Home page https://github.com/stoeffel/pretty-diff#readme
Bug tracker https://github.com/stoeffel/pretty-diff/issues
Source repo head: git clone https://github.com/stoeffel/pretty-diff
Uploaded by stoeffel at 2021-02-25T16:44:16Z
Distributions
Reverse Dependencies 3 direct, 9 indirect [details]
Downloads 2315 total (34 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for pretty-diff-0.4.0.3

[back to package description]

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"
 ▲