-
Notifications
You must be signed in to change notification settings - Fork 696
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
Parse error when trying to use multiple public libraries within mixins #6281
Comments
Might be an instance of #5846. |
@fgaz Thanks for pointing to this issue! #5846 is another problem I have. For some reason the following doesn't parse: build-depends: containers-backpack:sig
, QuickCheck But when I write dependencies in a single line, it parses: build-depends: containers-backpack:sig, QuickCheck
Which is for now only a minor UI inconvenience. |
Weird… I wonder what's wrong with the parsing code. I wasn't able to find the issue last time I tried to debug this. If you want to take a look at it yourself it's in Cabal/Distribution/Types/Dependency.hs |
@fgaz this is missing functionality. data Mixin = Mixin { mixinPackageName :: PackageName
, mixinIncludeRenaming :: IncludeRenaming } There are no sublibs. |
Also add a test for current behaviour of haskell#6083 And variant with mixin, for haskell#6281 The tests are disable for GHC older than 8.8 Should they work?
Also add a test for current behaviour of haskell#6083 And variant with mixin, for haskell#6281 The tests are disable for GHC older than 8.8 Should they work?
Also add a test for current behaviour of haskell#6083 And variant with mixin, for haskell#6281 The tests are disable for GHC older than 8.8 Should they work?
Resolve #6281: Add foo:bar syntax to mixins
Describe the bug
I have the following lines in my
.cabal
file:Here
containes-backpack
is a package with the public librarycontrib
inside it. However, when trying to build this package withcabal-install
I see the following error:To Reproduce
You can find full code here:
Steps to reproduce the behavior:
cabal v2-build
Expected behavior
No parse error.
System informataion
cabal-3.0.0.0
ghc-8.6.5
orghc-8.8.1
The text was updated successfully, but these errors were encountered: