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
Proposal: rename Data.ByteArray to Data.Array.Byte #19
Comments
Based on the breakage, I say we change the name. I don't like the proposed name, but I don't dislike it either. I don't think we should put too much thought into the name, though. So I'm +1 |
What if we eventually want to add other kinds of arrays to If |
@konsumlamm there are currently no plans to move more parts of |
+1, let's avoid that breakage and keep things moving. I find the name to be ugly, but acceptable, and not out of place among |
That's quite the name clash. Approved. |
I'm not a fan of the whole |
I'm okay with either name, and approve of avoiding the breakage situation. Normally I would slightly lean in the direction of Data.Array.ByteArray, since the module having the type's name in its name helps users identify where the type is coming from in cases where it has been imported unqualified. However, the 'array' package is full of modules like Data.Array.IO which exports IOArray. So Data.Array.Byte would be consistent with that. |
@chessai Are you comfortable with |
I'm fine with it |
Cool, seems everyone is on board with |
I'm trying to summarise the state of this proposal as part of my volunteering effort to track the progress of all
Please, let me know if you find any mistakes 🙂 |
MR: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/6742
Currently unreleased
base
HEAD contains a newData.ByteArray
module. It's been noticed that this is an unfortunate naming, because it clashes withmemory
and thus has a potential to break any of its 203 downstream dependencies.The proposal is to rename it to
Data.Array.ByteArray
:Data.Array
is a well-attested namespace (e. g., inarray
), andData.Array.ByteArray
is currently unused.Additionally, the MR adds
{-# LANGUAGE Trustworthy #-}
, because otherwisedeepseq
has to resort to pretty nasty hacks to provideinstance NFData
.This is unfortunately a rather pressing matter, because
deepseq
,bytestring
andtext
need to adopt asap. Since the impact on ecosystem is positive (less packages will be broken than with status quo) and GHC MR was open for a long time, I hope this does not require prolonged deliberations.The text was updated successfully, but these errors were encountered: