Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Commit ad3e6e7

Browse files
authored
Use visibility to decide which interfaces are included in quickjump (#1490)
This is also consistent with how html index is build. See haskell/cabal#7669 for rationale behind this decision.
1 parent 4367a8e commit ad3e6e7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

haddock-api/src/Haddock.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,10 @@ render logger dflags unit_state flags sinceQual qual ifaces installedIfaces extS
420420
ppJsonIndex odir sourceUrls' opt_wiki_urls
421421
unicode Nothing qual
422422
ifaces
423-
(nub $ map (\(_,a,_) -> a) installedIfaces)
423+
( nub
424+
. map (\(_,a,_) -> a)
425+
. filter (\(v,_,_) -> v == Visible)
426+
$ installedIfaces)
424427

425428
when (Flag_Html `elem` flags) $ do
426429
withTiming logger dflags' "ppHtml" (const ()) $ do

0 commit comments

Comments
 (0)