amazonka icon indicating copy to clipboard operation
amazonka copied to clipboard

Consolidate all amazonka-* libraries into a single amazonka library

Open brendanhay opened this issue 2 years ago • 9 comments

This is a tracking issue for Cabal's (and Hackage's) "Multiple public libraries" feature.

See:

  • Announcement: https://fgaz.me/posts/2019-11-14-cabal-multiple-libraries/
  • Original PR: https://github.com/haskell/cabal/pull/5526
  • Cabal tracking issue: https://github.com/haskell/cabal/issues/5660
  • Hackage support (supposed): https://github.com/haskell/hackage-server/issues/852

There are currently 140~ services configured and roughly that number still unconfigured (ie. not generated) that I've held off generating in the hope the feature would eventually be available/usable. Since it doesn't appear like it's there yet, I'd like to have a more concrete estimate of when (if ever) the feature will be usable on Hackage, otherwise generating the services into separate packages should resume.

Please link and discuss any additional updates and relevant issues.

brendanhay avatar Oct 10 '21 07:10 brendanhay

Stack support is another consideration: https://github.com/commercialhaskell/stack/issues/52561

endgame avatar Oct 10 '21 21:10 endgame

@endgame do you mean https://github.com/commercialhaskell/stack/issues/5256?

ketzacoatl avatar Oct 11 '21 00:10 ketzacoatl

Yes, thanks.

endgame avatar Oct 11 '21 00:10 endgame

This blog post may (or may not) be an indication of how likely such features will be supported by stack.

brendanhay avatar Oct 11 '21 05:10 brendanhay

Yeah. That's pretty recent so can probably be taken as true. If we move to multiple public libraries in a single package (if/when Hackage supports that), we may create more interest in stack gaining that support, or we may end up locking amazonka out of the stack universe for a long time.

Also note: the nix world is downstream from the stackage world - most of their stuff is built on stackage snapshots. If you want to do this, we should probably liase with them first. I have no idea if cabal2nix etc support multiple public libraries, and we may inflict a great deal of pain.

endgame avatar Oct 11 '21 08:10 endgame

I happen to know Stack is getting some additional maintainers shortly, which is great news. Michael came across a tad pessimistically in that post, but do I gather things like the multiple public libraries idea have caused a lot of pain.

istathar avatar Nov 08 '21 02:11 istathar

That's good news. Still need to check where hackage is at with all this stuff, as well as cabal2nix and haskell.nix. No point getting a whizz-bang new version of Amazonka out the door if nobody can use it =(

endgame avatar Nov 08 '21 02:11 endgame

https://github.com/commercialhaskell/stack/pull/6343 has been merged.

endgame avatar Dec 11 '23 11:12 endgame

haskell.nix

Just to say: haskell.nix works fine with multiple public libraries.

michaelpj avatar Jan 09 '24 14:01 michaelpj