Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
A patch function for tree-diff.
Documentation
patch :: ToExpr a => a -> a -> Maybe (Edit EditExpr) Source #
ediff
with unchanged sections filtered out
>>>
showPatch $ patch [1, 2, 3, 5] [0, 1, 2, 4, 6]
"[+0, -3, +4, -5, +6]"