Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Printing nice and simple diffs of two values.
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" ▲
Configuration
Configuration for pretty
.
Config | |
|
data MultilineContext Source #
Define how much context surrounding diffs you'd like to show.
pretty printing
pretty :: Config -> Text -> Text -> Text Source #
Printing a full diff of both values separated by some pipes.