We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcbe835 commit f88a8adCopy full SHA for f88a8ad
Cabal/Distribution/Types/InstalledPackageInfo/FieldGrammar.hs
@@ -288,6 +288,10 @@ basicFieldGrammar = mkBasic
288
-- This can be removed once we stop supporting GHC<8.8, at the
289
-- condition that we keep marking main libraries as public when
290
-- registering them.
291
- lv' = if ln' == LMainLibName
+ MungedPackageName _ mln = n
292
+ lv' = if
293
+ -- We need to check both because on ghc<8.2 ln' will always
294
+ -- be LMainLibName
295
+ ln' == LMainLibName && mln == LMainLibName
296
then LibraryVisibilityPublic
297
else lv
0 commit comments