-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add Bifunctor instance for PolyDiff #2
Comments
I think we can abandon base older than 4.8.0.0. If someone complains I'll welcome a PR with ifdefs. |
Have you noticed any slowness in the diff function? I may have seen this when running in the browser via ghcjs. |
We're only using the |
I can do the CPP. |
@ddssff did you test it with GHC 9.6? I suspect |
I don't have access to ghc-9.6. Stuck on 8.10. |
Sorry, I’m AFK until the next week. If you wish, once back home, I can generate a GitHub Actions CI setup with |
@ddssff could you possibly make a release some time soon? |
Hackage upload? Will do. |
Yes, please. |
Does O(ND) in the title refer to time or space complexity? |
Time is O(ND) and space is O(D^2). I'm not sure "O(ND)" is terribly helpful as a top-level package description without explaining what D refers to. It might be helpful to bring Cabal "description:" field in line with the module header: Lines 3 to 4 in 026aef2
Diff/src/Data/Algorithm/Diff.hs Lines 10 to 14 in 026aef2
|
How about this:
|
Thanks for a quick turnaround with a release, really much appreciated.
Looks great! And today I learned that one can edit package description via revision :) |
I'm thinking of removing 'getContextDiffOld' - I can't see how it could be
useful to anyone.
…On Sun, Oct 22, 2023 at 2:56 PM ˌbodʲɪˈɡrʲim ***@***.***> wrote:
Thanks for a quick turnaround with a release, really much appreciated.
How about this:
Looks great! And today I learned that one can edit package description via
revision :)
—
Reply to this email directly, view it on GitHub
<#2 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6M6SNQYYBIVRRKD5SFC23YAWI7LAVCNFSM6AAAAAARTL44PKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZUGIYDSNRYGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Makes sense to me. |
The following
Bifunctor
instance would be very handy:I appreciate supporting
base >= 3 && <= 6
makes things slightly more complicated, asBifunctor
is only available sincebase-4.8.0.0
. The two options I can think of are using aCPP
macro, or increasing the minimum bounds ofbase
.I'm happy to open a PR with either approach (or something else!).
The text was updated successfully, but these errors were encountered: