-
Notifications
You must be signed in to change notification settings - Fork 58
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
Use data-array-byte package to provide ByteArray for GHC < 9.4 #359
Conversation
I like this idea. I am reluctant to add a dependency that could create a bottleneck for fixing issues. Would you be able to either:
Either of these would make me feel a better about how quickly a patch release could get pushed out if something critically wrong was discovered that impacted |
@andrewthad @sjakobi @clyring @chessai @Lysxia I've added you all to https://github.com/Bodigrim/data-array-byte. Pending your acceptance of invitation, I'll provide Hackage rights as well. Do not worry, you are not expected to do anything, this is just to increase bus factor. |
I've accepted the invite to the GH repo. |
Hackage access provided: https://hackage.haskell.org/package/data-array-byte/maintainers/ |
FWIW, I see this is the way to go forward. If current But that would be supar (although |
I’m going to let this sit til Monday just to see if anyone has any additional review or concerns, and then I’ll merge it in. |
I wonder how many other names @hvr had reserved :) But besides that I'm not keen to steal a "nice" name for a compatibility package, which would hopefully be forgotten within couple of years. |
While I'm not a fan of HVR's name squatting, I'd like to point out that HVR has transferred ownership of some names upon request. |
@andrewthad let's go? |
@andrewthad just a gentle ping. |
Merged! |
Follow up on #354.
I copied
Data.Array.Byte
frombase-4.17
into a standalone compatibility packagedata-array-byte
so thatbytestring
andtext
can switch toByteArray
, but maintain providing a stable interface across GHC versions.Now
primitive
can also use the same compatibility package, reducing amount of CPP and code to maintain and just importingData.Array.Byte
unconditionally.Cf. haskell/text#474 and haskell/bytestring#410