-
Notifications
You must be signed in to change notification settings - Fork 103
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
Get ready for sublibraries. #483
Comments
I think this could work the same way that executables do. (See #161 for some commentary about that.) We could introduce a new top level |
There is already |
Should we rename these to |
Yesterday, I pushed a change that allows to have aliases for fields: 92c6c94 Optionally, aliases can be deprecated. This facilitates renaming in a backwards compatible way. I would still want to see a working, fully self-contained example before deciding to do that. Instead of renaming, we may also decide to add a new As a side note, Cabal having both |
Thanks for picking this up @sol. I went looking for This alias work is amazing. I have an hpack dependency. Others have a cabal build-dependency. With this we might bridge the gap. Could aliasing eventually cover all fields so that we might use hpack with a phrasing matching cabal's? On 92c6c94, aliases seem second class when I see a test "gives the primary name precedence". Could we give this more of a "warns on duplicate fields" feel? |
✨ This is an old work account. Please reference @brandonchinn178 for all future communication ✨ Another issue I found: you can explicitly depend on the main library by using the package name as a sublibrary name, which allows you to do: mylib:{mylib, internallib} But hpack seems to strip it out: dependencies:
- mylib:{mylib, internallib} build-depends:
mylib:{internallib} |
Please get ready for sublibraries. Cabal is mostly there. This is good for distribution of closely related libraries within a single package.
SEE: haskell/cabal#5660
SEE: brendanhay/amazonka#671
The text was updated successfully, but these errors were encountered: