-
Notifications
You must be signed in to change notification settings - Fork 141
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
Switch Data.ByteString.Short to ByteArray #410
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! :)
Ideally I would like to have |
The |
Since we are stuck with a |
@sjakobi could you please take another look? Is it suitable for bytestring-0.11 series? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure yet whether this can be done without a breaking change. I think the main problem is that the ShortByteString
constructor is (and has been) exported.
It seems that the derived Typeable
instance will also change, and depend on the base
version. :/
Also, could you clarify what the motivation for this change is? That should help document this change.
For clarity, I'll remove my old approval for now.
I've marked this as a draft for now. Feel free to mark it ready of review once it's ready for another round of review. |
0a4f471
to
7de739b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incidentally, I fixed the overflow issues in ByteArray
's Semigroup
instance upstream, though that patch has not been backported to 9.4. So that earlier concern of mine is less relevant now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice solution with the compat package! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Benchmark results? |
@hasufell no measurable difference, as expected. |
Indeed, although I did not expect it. |
The CI is finally green, including 32-bit build. If there are no further suggestions, I'll merge by the end of weekend. |
ByteArray
has just landed into GHC HEAD: https://gitlab.haskell.org/ghc/ghc/-/commit/1f8090933268b1ca071bc4a8a35b0f1828a76fceThis awaits for haskell/deepseq#65