-
Notifications
You must be signed in to change notification settings - Fork 698
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
Cannot reference internal libraries with cabal-version: 3.4 #7565
Comments
I guess I'm still confused why cabal can't find the internal library without the Edit: I guess the reason is that |
See #6083 EDIT: TL;DR sub libraries shadowing package names would require adding a syntax for package name build depends. It made more sense (also implementation wise, as name resolution is then simpler) to always require qualified names for sublibraries. This issue is IMO wontfix, except for possibly better diagnostics from solver. |
Sorry, now I understand what I did (therefore I've removed my previous msg)... In this case I'm just going through the issues related to internal libraries and I've found this one. Thx @phadej for the explanation. |
As of cabal-version: 3.4 and higher, it's necessary to use a different syntax to depend on internal libraries than previous versions. Document this change in a note block in the Internal Libraries section. See: haskell#7565
As of cabal-version: 3.4 and higher, it's necessary to use a different syntax to depend on internal libraries than previous versions. Document this change in a note block in the Internal Libraries section. See: haskell#7565
As of cabal-version: 3.4 and higher, it's necessary to use a different syntax to depend on internal libraries than previous versions. Document this change in a note block in the Internal Libraries section. See: haskell#7565
Not sure if the issue is actionable: internal libs can be referenced for cabal-version 3.4 and it is documented |
Actions I would like to see happen:
|
Many thanks for summarize needed changes in docs, it seems we have the sketch for a pull request updating documentation! |
Describe the bug
When using
cabal-version: 3.4
it seems like I cannot directly reference internal libraries anymore. I can only use the experimentalpackage:internal-lib
notation.To Reproduce
Steps to reproduce the behavior:
Make a cabal file with these contents:
cabal v2-build
Expected behavior
A successful build like if I use
cabal-version: 3.0
or as if I use the experimentalmy-lib:my-lib-internal
notation in thebuild-depends
field.System information
Operating system: NixOS 21.05
cabal
,ghc
versionsAdditional context
From this stackoverflow question: https://stackoverflow.com/q/68880126/15207568
The text was updated successfully, but these errors were encountered: