Skip to content

Commit a9fee72

Browse files
committed
Add comment on multilibs syntax ambiguity
1 parent 21550ee commit a9fee72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Cabal/Distribution/Backpack/ConfiguredComponent.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,8 @@ newPackageDepsBehaviour pkg =
306306
-- and internal libraries are specified the same. For now, we assume internal
307307
-- libraries shadow, and this function disambiguates accordingly, but soon the
308308
-- underlying ambiguity will be addressed.
309+
-- Multiple public libraries (cabal 3.0) added an unambiguous way of specifying
310+
-- sublibraries, but we still have to support the old syntax for bc reasons.
309311
fixFakePkgName :: PackageDescription -> PackageName -> (PackageName, ComponentName)
310312
fixFakePkgName pkg_descr pn =
311313
if subLibName `elem` internalLibraries

0 commit comments

Comments
 (0)