Skip to content

Commit e93667b

Browse files
committed
haskell: skip the .Internal modules
They re-export what the public modules do, so their 1380 entries are duplicates of ones that already exist. They also rarely declare a type of their own, which leaves them without the context the entries filter appends, and so among the least tellable apart. One pattern covers the handful that were listed by hand.
1 parent e249a48 commit e93667b

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

‎lib/docs/scrapers/haskell.rb‎

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,14 @@ class Haskell < FileScraper
2222
/haskell2010/,
2323
/ghc-/,
2424
/Cabal-/,
25-
/Compiler-Hoopl-Internals\.html\z/i,
25+
# The .Internal modules re-export what the public ones do, so they only
26+
# double every entry. They also rarely declare a type of their own, which
27+
# leaves their entries without the context the entries filter appends.
28+
/-Internals?[-.]/,
2629
/Control-Exception-Base\.html\z/i,
27-
/Data-Binary-Get-Internal\.html\z/i,
2830
/Language-Haskell-TH-Lib\.html\z/i,
2931
/Text-PrettyPrint\.html\z/i,
30-
/Data-OldTypeable-Internal\.html\z/i,
31-
/Data-Typeable-Internal\.html\z/i,
32-
/GHC-IO-Encoding-Types\.html\z/i,
33-
/System-Posix-Process-Internals\.html\z/i,
34-
/Data-Map-Strict-Internal\.html\z/i,
35-
/Data-IntMap-Internal\.html\z/i,
36-
/Data-Set-Internal\.html\z/i,
37-
/Data-Map-Internal\.html\z/i,
38-
/Data-Sequence-Internal\.html\z/i
32+
/GHC-IO-Encoding-Types\.html\z/i
3933
]
4034

4135
options[:skip] = %w(

0 commit comments

Comments
 (0)