-
Notifications
You must be signed in to change notification settings - Fork 843
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
Refactoring package to component centered design #6334
Refactoring package to component centered design #6334
Conversation
a9c8462
to
927baa5
Compare
@theobat, the integration tests are failing because (I think) you have edited the Stan is complaining because the ignored |
927baa5
to
da2e5a0
Compare
All good, thanks @mpilgrem |
…into theobat-package-component
@theobat, I likely will not work through all of this tonight. However, I have pushed to your branch my progress so far. I am applying consistent formatting as I go (that is what almmost all of my further changes are about); as we discussed elsewhere - I don't ask that you waste your own time thinking about that. |
Still working through it, also reformatting for consistency as I go (another batch of commits). Some of this has picked up some unrelated formatting. |
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.
@theobat, all looks good to me, but I did ponder about the naming of a small number of things. See my specific comments. What do you think?
@theobat, with the exception of a little reformatting and my renaming a small number of identifiers, I have merged what you proposed. However, I have a question you may be able to help with: the following expressions evaluate to the same value. Can one be rationally be preferred over the other? Set.toList $ buildableSubLibs package
getBuildableListText $ packageSubLibraries package |
Thanks ! @mpilgrem |
This is a first step towards a component based architecture in stack and a package representation closer to the cabal one.
The idea is, following this : #6065, we had too many scattered representations of component centric data. This is a good stab in regrouping everything in a very cabal-close design.
The main refactoring this MR propose is to have collections of cabal-like components, such as for instance :
Which is a mirror of Cabal's Library, with only the things Stack needs.
This MR already brings a lot of change, but keep in mind that :