[Haskell-cafe] diff implementation in haskell

Don Stewart dons at galois.com
Sun Dec 6 17:38:55 EST 2009


asviraspossible:
> Are there pure haskell implementations of diff and diff3 algorithms. Like:
> 
> > data Diff a = Deleted [a] | Common [a] | Added [a]
> >
> > diff :: Eq a => [a] -> [a] -> [Diff a]
> >
> > diff3 :: Eq a => [a] -> [a] -> [a] -> [a]
> 

There's at least one on Hackage:

    http://hackage.haskell.org/package/Diff

-- Donn


More information about the Haskell-Cafe mailing list