-
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
Data.List should re-export GHC.List.List #182
Comments
I don't understand what makes this awkward. Also, when do you need |
Well, for once, awkwardness levels are influenced by how arm-twisting it is. Today we have the following places for List-related things:
The first one is the official entry point for List operations in the base library. Moreover it is highly uncommon to have such a primordial type defined in an internal module, have its operations re-exported in a public-facing module, but not the type itself. Hence this proposal to solve a very odd mismatch between GHC.List and Data.List
When I'm writing a tutorial for beginners and have no desire to showcase the inconsistency of our user experience. |
You haven't yet explained the purpose of importing |
When one imports a type it is usually to use it in a type signature. |
FWIW, I'm in favour of exporting this name from
|
Isn't this a moral duplicate of #22. i.e. the plan is accepted, but someone needs to write the patches to aid monomorphisation migration of |
I truly don’t understand how this could possibly be interpreted as having anything to do with monomorphization. |
As a relative outsider who is also regularly using It does not appear to be a duplicate (moral or otherwise) of #22 except in that it also concerns lists. |
@phadej perhaps you read this issues as |
To attempt to fill in some blanks (and I didn't know about this until I just looked), it appears that
(I don't know what the relative status of |
This is a good idea, you've my support. :) |
This CLC issue looks relevant: I don't like inconsistency. And I'd pretty weirded out by having So my preference is to have the same decision on both of this issues (162 and 182). |
It is no doubt a source of frustration to potential proposers that the outcome of their proposal should depend on the outcomes of other, tangentially-related proposals, for the sake of consistency, rather than accepting the specific incremental changes a proposer puts forth (and declares that they have the bandwidth to pursue). The "inconsistency" may spur another member of the community to do that work for you anyway, after all! |
@mixphix To clarify, I didn't ask the author of this proposal to do more work neither my intention was to block their work by the outcome of another proposal. It was a non-binding ask to other CLC members to vote the same on both proposals (in any order of vote). |
No, despite me explicitly asking to raise one. There is also no changelog entry and no |
I'm not sure how to interpret that last message, but if it's an offer of help with writing CLC proposals, changelog entries, and |
@int-index yeah sure I can add the changelog entry & |
This might sound nitpicky, but is And if so, we should probably have GHC devs clarify, before we start imposing restrictions on them by doing re-exports without asking. Although this seems like a no-brainer, we should follow some proper procedure, given the imminent split base proposal. |
@int-index We spoke briefly of it on Twitter but perhaps could you emit a clarification regarding the status of the List type? Do we risk anything by exposing it? |
@Kleidukos Yes, it's fine. The new names |
I can retrofit this proposal to include both |
Doesn't have to be one proposal, that's entirely up to you. I'm just trying to clear up the idea behind GHC Proposal #475. Those new names are meant to be user-facing, but they're exported from |
@Kleidukos If you have the capacity to prepare a merge request and impact assessment for exporting both |
I included some of that in #162, for the names that will be exposed for tuples (though not including the module name |
@Kleidukos I'd advise against scope creep. The situation with |
https://ghc.gitlab.haskell.org/ghc/doc/libraries/ghc-prim-0.10.0-inplace/GHC-Tuple.html |
@int-index, that is a link to |
Good point. So |
@Kleidukos if there is no progress within two weeks, I'll close as abandoned. |
@Bodigrim I should be able to give a proper patch list on Monday! :) |
Alright, I was actually wrong in my first observation, there are five patches needed: In the last patch I toyed a bit with CPP, which is what should be expected of the final patches that I shall send to these packages once the version of |
Thanks @Kleidukos! Could you also point us to an MR with the proposed change? Sorry if you mentioned it already, I’m from mobile. |
@Bodigrim Sorry I believe I don't fully understand what you mean, if you are referring to concrete patches for the build problems, they are listed in my above comment (which is what I read I should do before approval, and then submit the patches to the packages after approval). Or perhaps are you thinking of a MR to |
All good with impact assessment, many thanks :) I'm talking about a draft GHC MR, adding the reexport (just two lines of changes and changelog, nothing fancy). |
Heavens, apologies for the evening brain. Sure, it's underway. :) |
Dear CLC members, following the non-binding discussion above, let's vote on the proposal to re-export @mixphix @hasufell @tomjaguarpaw @parsonsmatt @angerman @velveteer |
+1 under the condition that the documentation remarks raised here are taken care of |
+1 |
@hasufell Please see https://gitlab.haskell.org/ghc/ghc/-/merge_requests/11426, feedback would be welcome on the topic of documentation. |
+1 |
@mixphix @angerman @velveteer just a gentle reminder to vote. |
+1 |
1 similar comment
+1 |
+0. I'm generally opposed to have two names for the same thing and reluctant to make sacrifices just for the sake of non-punning Dependent Haskell syntax. But given that it's Thanks all, there are enough votes of unconditional support to approve. Further documentation improvements, if any, do not require a CLC vote. |
Thanks everyone for your patience. 🙇 |
This is done to allow build with CLC Proposal #182 (haskell/core-libraries-committee#182)
This is done to allow build with CLC Proposal #182 (haskell/core-libraries-committee#182)
This is done to allow build with CLC Proposal #182 (haskell/core-libraries-committee#182)
This is done to allow build with CLC Proposal #182 (haskell/core-libraries-committee#182)
This is done to allow build with CLC Proposal tfausak#182 (haskell/core-libraries-committee#182)
This is done to allow build with CLC Proposal tfausak#182 (haskell/core-libraries-committee#182)
Proposal
Data.List should re-export GHC.List.List
It is terribly awkward to have
Impact Assessment
I'll fill out this part when I am able to compile the ghc-9.4.4 branch of GHC, for the moment I'm facing hardships with "missing dependencies".
The text was updated successfully, but these errors were encountered: