Issue with multi public library feature on Cabal 3.0

Hi All, I'm currently having issue with the multi public library feature on Cabal 3.0. I have a `main` package that has a dependency on `sub` package that exports main and sub library build-depends: sub:{sub, sublib} But when I try to build it, I got an error saying cabal: Encountered missing or private dependencies: sub : {sub, sublib} ==0.1.0.0 I have `visibility: true` on my library stanza, and I have cabal-install 3.0 installed, I couldn't figure out what's wrong. I've come across this issue https://github.com/haskell/cabal/issues/6039, and I'm not sure whether it's related to my issue. Here's an example of the code I have: https://github.com/jeffhappily/test Best regards, Jeff

Here's an example of the code I have: https://github.com/jeffhappily/test
That does work for me. From the bounds you put on base I'm guessing you are using GHC <8.8. Due to how packages are registered and how ghc and Cabal-the-library depend on each other, public libraries only work with GHC>=8.8 Cheers -- Francesco
participants (2)
-
Francesco Gazzetta
-
Good boy