From goodboy96 at live.com.my Tue Jan 21 11:37:30 2020 From: goodboy96 at live.com.my (Good boy) Date: Tue, 21 Jan 2020 11:37:30 +0000 Subject: Issue with multi public library feature on Cabal 3.0 Message-ID: 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From fgaz at fgaz.me Tue Jan 21 15:14:34 2020 From: fgaz at fgaz.me (Francesco Gazzetta) Date: Tue, 21 Jan 2020 16:14:34 +0100 Subject: Issue with multi public library feature on Cabal 3.0 In-Reply-To: References: Message-ID: <20200121161434.572ce53d@phi> > 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