Skip to content

Commit f2dd0ea

Browse files
daniel23Skidoo
daniel
authored andcommitted
Added note to the documentation of "mixins:"
It mentions the issue of parsing failures caused by the presence of blank spaces after opening parentheses. See #5150, #5292, #5293.
1 parent 96f9c1f commit f2dd0ea

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Cabal/doc/developing-packages.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2292,6 +2292,13 @@ system-dependent values for these fields.
22922292
mixins:
22932293
foo (Foo.Bar as AnotherFoo.Bar, Foo.Baz as AnotherFoo.Baz)
22942294

2295+
.. Note::
2296+
2297+
The current version of Cabal suffers from an infelicity in how the
2298+
entries of :pkg-field:`mixins` are parsed: an entry will fail to parse
2299+
if the provided renaming clause has whitespace after the opening
2300+
parenthesis. This will be fixed in future versions of Cabal.
2301+
22952302
There can be multiple mixin entries for a given package, in effect creating
22962303
multiple copies of the dependency:
22972304

0 commit comments

Comments
 (0)