You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Parse error when trying to use multiple public libraries within mixins #6281
build-depends: containers-backpack:{ int-strict, ordered-strict, unordered-strict, contrib }
mixins: containers-backpack:contrib (Map.Contrib.Group as Map.Contrib.Group.Int)
requires (Map as Map.Int)
Here containes-backpack is a package with the public library contrib inside it. However, when trying to build this package with cabal-install I see the following error:
Errors encountered when parsing cabal file ./containers-backpack.cabal:
containers-backpack.cabal:142:43: error:
unexpected ':'
expecting "-", white space, "(", "hiding", "requires", comma or end of input
140 | build-depends: containers-backpack:{ int-strict, ordered-strict, unordered-strict, contrib }
141 |
142 | mixins: containers-backpack:contrib (Map.Contrib.Group as Map.Contrib.Group.Int)
| ^
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
Activity
fgaz commentedon Oct 3, 2019
Might be an instance of #5846.
chshersh commentedon Oct 3, 2019
@fgaz Thanks for pointing to this issue! #5846 is another problem I have. For some reason the following doesn't parse:
But when I write dependencies in a single line, it parses:
Which is for now only a minor UI inconvenience.
fgaz commentedon Oct 3, 2019
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
phadej commentedon May 14, 2020
@fgaz this is missing functionality.
Mixin(notDependency) is atm defined asThere are no sublibs.
Resolve haskell#6409: Add public multilib test(s)
Resolve haskell#6409: Add public multilib test(s)
Resolve haskell#6409: Add public multilib test(s)
Resolve haskell#6281: Add foo:bar syntax to mixins
Resolve haskell#6281: Add foo:bar syntax to mixins
Resolve haskell#6281: Add foo:bar syntax to mixins
Resolve haskell#6281: Add foo:bar syntax to mixins
Resolve haskell#6281: Add foo:bar syntax to mixins
Resolve haskell#6281: Add foo:bar syntax to mixins
Merge pull request #6912 from phadej/issue-6281
Add file format changelog entries for #6281 and #6083