File tree 1 file changed +5
-4
lines changed
Cabal/Distribution/Simple
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ import Distribution.Types.LegacyExeDependency
83
83
import Distribution.Types.PkgconfigDependency
84
84
import Distribution.Types.LocalBuildInfo
85
85
import Distribution.Types.LibraryName
86
+ import Distribution.Types.LibraryVisibility
86
87
import Distribution.Types.ComponentRequestedSpec
87
88
import Distribution.Types.ForeignLib
88
89
import Distribution.Types.ForeignLibType
@@ -899,9 +900,9 @@ dependencySatisfiable
899
900
900
901
|| all
901
902
(\ lib ->
902
- (depName, CLibName lib)
903
- `Map.member`
904
- requiredDepsMap )
903
+ let maybeIPI =
904
+ (depName, CLibName lib) `Map.lookup` requiredDepsMap
905
+ in ( Just LibraryVisibilityPublic ) == ( Installed. libVisibility <$> maybeIPI) )
905
906
sublibs
906
907
907
908
| isInternalDep
@@ -965,7 +966,7 @@ configureFinalizedPackage verbosity cfg enabled
965
966
pkg_descr0
966
967
of Right r -> return r
967
968
Left missing ->
968
- die' verbosity $ " Encountered missing dependencies:\n "
969
+ die' verbosity $ " Encountered missing or private dependencies:\n "
969
970
++ (render . nest 4 . sep . punctuate comma
970
971
. map (pretty . simplifyDependency)
971
972
$ missing)
You can’t perform that action at this time.
0 commit comments