Skip to content

Commit

Permalink
Add comment on multilibs syntax ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
fgaz committed Nov 3, 2018
1 parent ed1c6b0 commit 533b7cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cabal/Distribution/Backpack/ConfiguredComponent.hs
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@ newPackageDepsBehaviour pkg =
-- and internal libraries are specified the same. For now, we assume internal
-- libraries shadow, and this function disambiguates accordingly, but soon the
-- underlying ambiguity will be addressed.
-- Multiple public libraries (cabal 3.0) added an unambiguous way of specifying
-- sublibraries, but we still have to support the old syntax for bc reasons.
fixFakePkgName :: PackageDescription -> PackageName -> (PackageName, ComponentName)
fixFakePkgName pkg_descr pn =
if subLibName `elem` internalLibraries
Expand Down

0 comments on commit 533b7cf

Please sign in to comment.