HORIZON HASKELLDocslts/ghc-9.14.x99ffbb82026-10-19Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 99ffbb8 · 2026-10-19

ModuleDiff-1.0.2Haskell2010

Data.Algorithm.DiffOutput

Generates a string output that is similar to diff normal mode

Synopsis
  • PackageDiff-1.0.2
  • Exports7
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceDiffOutput.hs
valueppDiff :: [Diff [String]] -> String

pretty print the differences. The output is similar to the output of the diff utility

> putStr (ppDiff (getGroupedDiff ["a","b","c","d","e"] ["a","c","d","f"]))
2d1
< b
5c4
< e
---
> f