Skip to content
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

Support public sublibraries #5256

Closed
expipiplus1 opened this issue Apr 11, 2020 · 8 comments
Closed

Support public sublibraries #5256

expipiplus1 opened this issue Apr 11, 2020 · 8 comments

Comments

@expipiplus1
Copy link
Contributor

It would be super to be able to use cabal 3's visibility: public feature (https://fgaz.me/posts/2019-11-14-cabal-multiple-libraries/) on auxiliary libraries. Personally I'd like to make use of this feature to avoid cluttering the write-only namespace on Hackage/Stackage. This is also quite important IMO for backpack due to the number of different libraries required for a backpackized project.

Related: #4910, #2540 and #4564

I couldn't find an existing issue for this, and perhaps this is a better fit for the Stackage repo.

@expipiplus1
Copy link
Contributor Author

oh, perhaps stack already has support here, I see there's a test here: https://github.com/commercialhaskell/stack/tree/master/test/integration/tests/cabal-public-sublibraries

@Qiu233
Copy link

Qiu233 commented Jun 17, 2023

Is there a way to declare multiple libraries in package.yaml?

@mpilgrem
Copy link
Member

@Qiu233, Cabal sublibraries? I think not, given: sol/hpack#483.

@hasufell
Copy link
Contributor

@mpilgrem hpack is an optional feature. One doesn't need to use it in order to use stack.

@mpilgrem mpilgrem changed the title Support multiple public libraries Support public sublibraries Jun 17, 2023
@mpilgrem
Copy link
Member

On the topic of Stack supporting Cabal's public sublibraries, there is also #4745 (component-based builds).

@mmhat
Copy link

mmhat commented Aug 15, 2023

oh, perhaps stack already has support here, I see there's a test here: https://github.com/commercialhaskell/stack/tree/master/test/integration/tests/cabal-public-sublibraries

I think this issue can be closed, can't it?

@mpilgrem
Copy link
Member

@mmhat, if you are proposing this issue be closed because Stack supports public sublibraries, Stack does not (yet) support them.

@mpilgrem
Copy link
Member

mpilgrem commented Dec 1, 2023

I am closing this issue because #6343 has been merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants