-
Notifications
You must be signed in to change notification settings - Fork 712
Parameterize SourcePackage and ConfiguredPackage on package location #3210
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
Conversation
I should say: The reason we want to break the "PackageLocation" dependency is that it brings in a lot of unnecessary baggage, namely URI (i.e. the |
Most of the remainder of splitting out the solver into its own library "between" Cabal and cabal-install is just moving files around and splitting up I think we can hold off on that for a bit if we still want to keep master close to 1.24.x for a while. This bit is the most code-edit heavy bit. |
Looks harmless enough, the only complaint is bikeshedding: the |
That's a good point. I'll have a look at it tomorrow. |
Looking over the other code, we have three variants:
I'm not sure what that last one really represents. My only concern about doing what you suggest is really that the names are a bit long... though obviously not as long as spelling out the full types. Would EDIT: I mean UnresolvedPackageLocation is 25 characters which is ~30% of the 80-column budget! (BTW, if we're going to be systematic about it, this does involve changes in a few further places that this patch doesn't currently touch. It's not too bad, but worth mentioning.) |
e53644c
to
6c41188
Compare
This is a step towards breaking the dependency from the modular solver on cabal-install.
6c41188
to
3054562
Compare
OK, so I've changed this to two commits:
Hopefully that should be it. Let me know if you'd like the longer names -- it's pretty trivial to do a global search/replace. |
Sorry for ALL THE BIKESHEDS, but I'd be keen for an alias on |
Can we please do that in a follow-up? I'd really like to get this merged ASAP since it's pretty prone to conflicts with other stuff. |
@23Skidoo OK to merge? |
I think we can leave this one as it is. |
Parameterize SourcePackage and ConfiguredPackage on package location
Merged, thanks! |
This is a step towards breaking the dependency from the modular
solver on cabal-install.