CabalFix.Patch
Description
A patch function for tree-diff.
patch :: ToExpr a => a -> a -> Maybe (Edit EditExpr) Source #
ediff with unchanged sections filtered out
ediff
>>> showPatch $ patch [1, 2, 3, 5] [0, 1, 2, 4, 6] "[+0, -3, +4, -5, +6]"
>>>
showPatch $ patch [1, 2, 3, 5] [0, 1, 2, 4, 6]
showPatch :: Maybe (Edit EditExpr) -> String Source #
Create a String representation of a patch.