Skip to content

Commit 1248122

Browse files
authored
package page: Include virtual-modules in module tree (#1085)
The virtual-modules field is used by ghc-prim to provide a magic module which doesn't exist on disk but still has documentation and so-on. By including it here the module appears in the module list on the package homepage.
1 parent c995284 commit 1248122

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Distribution/Server/Packages/Render.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ doPackageRender users info = PackageRender
149149
= let mod_ix = mkForest $ exposedModules lib
150150
-- Assumes that there is an HTML per reexport
151151
++ map moduleReexportName (reexportedModules lib)
152+
++ virtualModules (libBuildInfo lib)
152153
sig_ix = mkForest $ signatures lib
153154
mkForest = moduleForest . map (\m -> (m, moduleHasDocs docindex m))
154155
in Just (ModSigIndex { modIndex = mod_ix, sigIndex = sig_ix })

0 commit comments

Comments
 (0)