Copyright | (c) David Fox (2015) |
---|---|
License | BSD 3 Clause |
Maintainer | s.clover@gmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell98 |
Author : David Fox (ddssff at the email service from google)
Generates a grouped diff with merged runs, and outputs them in the manner of diff -u
- getContextDiff :: Eq a => Int -> [a] -> [a] -> ContextDiff a
- prettyContextDiff :: Doc -> Doc -> (c -> Doc) -> ContextDiff c -> Doc
Documentation
getContextDiff :: Eq a => Int -> [a] -> [a] -> ContextDiff a Source #
Do a grouped diff and then split up the chunks into runs that contain differences surrounded by N lines of unchanged text. If there is less then 2N+1 lines of unchanged text between two changes, the runs are left merged.