-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need better long string diff #43
Comments
Patches are welcome |
Sorry, now as I read properly, you want |
After some search on hackage, google doesn't get what I want by "diff", I found "Diff" package. There is getGroupedDiff function taking 2 equable lists and returns list of same/left/right chunks. I think it would help tree-diff too to deal with long text. |
There is already list diffing algorithm in *Data.TreeDiff> ansiWlEditExprCompact $ ediff (unlines ["first", "second", "third"]) (unlines ["first", "third"])
concat
[
"first\n",
-"second\n",
"third\n"] And I'm not convinced that complicating that further to make cases like *Data.TreeDiff> ansiWlEditExprCompact $ ediff (unlines ["first", "second", "third"]) (unlines ["first", "sec", "third"])
concat
[
"first\n",
-"second\n",
+"sec\n",
"third\n"] shown like on GitHub (e.g. highlighted what the difference between these two) is worth the trouble if there isn't some elegant solution. Ideas and patches welcome. |
The library does just what I was looking for, but it is to complicated to use it in existing project for app config type, because it contains dozens of types spread across submodules and 3rd packages. To much work to make 1 test failure more readable. I would like to use ediffEq for Showable types. ediffEq doesn't look inside strings and it is not obvious what is different when long strings are compared.
The text was updated successfully, but these errors were encountered: