haskell.rb 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. module Docs
  2. class Haskell < UrlScraper
  3. self.name = 'Haskell'
  4. self.type = 'haskell'
  5. self.version = '7.8.4'
  6. self.base_url = 'https://downloads.haskell.org/~ghc/7.8.4/docs/html/libraries/'
  7. self.root_path = 'index.html'
  8. html_filters.push 'haskell/entries', 'haskell/clean_html'
  9. options[:container] = '#content'
  10. options[:skip] = %w(
  11. hoopl-3.10.0.1/Compiler-Hoopl-Internals.html
  12. base-4.7.0.0/Control-Exception-Base.html
  13. binary-0.7.1.0/Data-Binary-Get-Internal.html
  14. template-haskell-2.9.0.0/Language-Haskell-TH-Lib.html
  15. haskell98-2.0.0.3/Prelude.html
  16. pretty-1.1.1.1/Text-PrettyPrint.html
  17. base-4.7.0.0/Data-OldTypeable-Internal.html
  18. base-4.7.0.0/Data-Typeable-Internal.html
  19. base-4.7.0.0/GHC-IO-Encoding-Types.html
  20. unix-2.7.0.1/System-Posix-Process-Internals.html)
  21. options[:skip_patterns] = [/src\//, /doc-index/, /haskell2010/, /ghc-/, /Cabal-/]
  22. options[:attribution] = <<-HTML
  23. &copy; The University of Glasgow and others<br>
  24. Licensed under a BSD-style license (see top of the page).
  25. HTML
  26. end
  27. end