Skip to content

Commit

Permalink
Added note to the documentation of "mixins:"
Browse files Browse the repository at this point in the history
It mentions the issue of parsing failures caused by the presence of
blank spaces after opening parentheses.

See haskell#5150, haskell#5292, haskell#5293.
  • Loading branch information
daniel committed Jun 18, 2018
1 parent 8fa1d2f commit 47654c9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Cabal/doc/developing-packages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2292,6 +2292,13 @@ system-dependent values for these fields.
mixins:
foo (Foo.Bar as AnotherFoo.Bar, Foo.Baz as AnotherFoo.Baz)

.. Note::

The current version of Cabal suffers from an infelicity in how the
entries of :pkg-field:`mixins` are parsed: an entry will fail to parse
if the provided renaming clause has whitespace after the opening
parenthesis. This will be fixed in future versions of Cabal.

There can be multiple mixin entries for a given package, in effect creating
multiple copies of the dependency:

Expand Down

0 comments on commit 47654c9

Please sign in to comment.