HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

ModuleDiff-1.0.2Haskell2010

Data.Algorithm.DiffOutput

Generates a string output that is similar to diff normal mode

  • 3 types
  • 4 values
  • 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