History

Update haskell version 8 to 8.10.2

MasterEnoc committed 5 years ago

Commit 09a5f571 parent 03c27a91 file · +4 −1Browse files

Unified · Split

lib/docs/scrapers/haskell.rb+4−1
@@ -13,6 +13,7 @@ module Docs · 12 unmodified lines
13 options[:container] = ->(filter) {filter.subpath.start_with?('users_guide') ? '.body' : '#content'}13 options[:container] = ->(filter) {filter.subpath.start_with?('users_guide') ? '.body' : '#content'}
14 14
15 options[:only_patterns] = [/\Alibraries\//, /\Ausers_guide\//]15 options[:only_patterns] = [/\Alibraries\//, /\Ausers_guide\//]
16
16 options[:skip_patterns] = [17 options[:skip_patterns] = [
17 /-notes/,18 /-notes/,
18 /editing-guide/,19 /editing-guide/,
@@ -36,6 +37,7 @@ module Docs · 17 unmodified lines
36 /Data-Map-Internal\.html\z/i,37 /Data-Map-Internal\.html\z/i,
37 /Data-Sequence-Internal\.html\z/i38 /Data-Sequence-Internal\.html\z/i
38 ]39 ]
40
39 options[:skip] = %w(41 options[:skip] = %w(
40 users_guide/license.html42 users_guide/license.html
41 users_guide/genindex.html43 users_guide/genindex.html
@@ -57,7 +59,7 @@ module Docs · 15 unmodified lines
57 end59 end
58 60
59 version '8' do61 version '8' do
60 self.release = '8.8.3'62 self.release = '8.10.2'
61 self.base_url = "https://downloads.haskell.org/~ghc/#{release}/docs/html/"63 self.base_url = "https://downloads.haskell.org/~ghc/#{release}/docs/html/"
62 end64 end
63 65
@@ -75,5 +77,6 @@ module Docs · 11 unmodified lines
75 versions = links.map {|link| link['href'].scan(/ghc-([0-9.]+)/)}77 versions = links.map {|link| link['href'].scan(/ghc-([0-9.]+)/)}
76 versions.find {|version| !version.empty?}[0][0]78 versions.find {|version| !version.empty?}[0][0]
77 end79 end
80
78 end81 end
79end82end