HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

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