Skip to content

Commit

Permalink
Make ExposedModules out of ModuleNames
Browse files Browse the repository at this point in the history
  • Loading branch information
angerman committed Nov 10, 2017
1 parent 3623270 commit 62bc64d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Cabal/Distribution/Simple/Register.hs
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,10 @@ generalInstalledPackageInfo adjustRelIncDirs pkg abi_hash lib lbi clbi installDi
IPI.abiHash = abi_hash,
IPI.indefinite = componentIsIndefinite clbi,
IPI.exposed = libExposed lib,
IPI.exposedModules = componentExposedModules clbi ++ virtualModules bi,
IPI.exposedModules = componentExposedModules clbi
-- add virtual modules into the list of exposed modules for the
-- package database as well.
++ map (\name -> IPI.ExposedModule name Nothing) (virtualModules bi),
IPI.hiddenModules = otherModules bi,
IPI.trusted = IPI.trusted IPI.emptyInstalledPackageInfo,
IPI.importDirs = [ libdir installDirs | hasModules ],
Expand Down

0 comments on commit 62bc64d

Please sign in to comment.