git.iko.soy/typeable/html-parse
on 937d4a7 help sign in
4 files changed+40−18
since splitsnapshots
unifiedsplit
.github/workflows/haskell-ci.yml+37−2 changelog.md−10 html-parse.cabal+3−5 src/Text/HTML/Parser.hs−1
.github/workflows/haskell-ci.yml+37−2
@@ -163,6 +163,41 @@ jobs:
163163 compilerVersion: 8.4.1
164164 setup-method: hvr-ppa
165165 allow-failure: false
166+ - compiler: ghc-8.2.2
167+ compilerKind: ghc
168+ compilerVersion: 8.2.2
169+ setup-method: hvr-ppa
170+ allow-failure: false
171+ - compiler: ghc-8.2.1
172+ compilerKind: ghc
173+ compilerVersion: 8.2.1
174+ setup-method: hvr-ppa
175+ allow-failure: false
176+ - compiler: ghc-8.0.2
177+ compilerKind: ghc
178+ compilerVersion: 8.0.2
179+ setup-method: hvr-ppa
180+ allow-failure: false
181+ - compiler: ghc-8.0.1
182+ compilerKind: ghc
183+ compilerVersion: 8.0.1
184+ setup-method: hvr-ppa
185+ allow-failure: false
186+ - compiler: ghc-7.10.3
187+ compilerKind: ghc
188+ compilerVersion: 7.10.3
189+ setup-method: hvr-ppa
190+ allow-failure: false
191+ - compiler: ghc-7.10.2
192+ compilerKind: ghc
193+ compilerVersion: 7.10.2
194+ setup-method: hvr-ppa
195+ allow-failure: false
196+ - compiler: ghc-7.10.1
197+ compilerKind: ghc
198+ compilerVersion: 7.10.1
199+ setup-method: hvr-ppa
200+ allow-failure: false
166201 fail-fast: false
167202 steps:
168203 - name: apt
@@ -289,8 +324,8 @@ jobs:
289324 touch cabal.project
290325 touch cabal.project.local
291326 echo "packages: ${PKGDIR_html_parse}" >> cabal.project
292− echo "package html-parse" >> cabal.project
293− echo " ghc-options: -Werror=missing-methods" >> cabal.project
327+ if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo "package html-parse" >> cabal.project ; fi
328+ if [ $((HCNUMVER >= 80200)) -ne 0 ] ; then echo " ghc-options: -Werror=missing-methods" >> cabal.project ; fi
294329 cat >> cabal.project <<EOF
295330 EOF
296331 $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(html-parse)$/; }' >> cabal.project.local
changelog.mddeleted−10
@@ -1,10 +0,0 @@
1−# Changelog for `html-parse`
2−
3−## 0.2.1.0
4−
5−- Added support for decoding of character references (#18)
6−- All self-closing elements are now recognized as such
7−
8−## Earlier
9−
10−There be dragons.
html-parse.cabal+3−5
@@ -1,5 +1,5 @@
11name: html-parse
2−version: 0.2.1.0
2+version: 0.2.0.2
33synopsis: A high-performance HTML tokenizer
44description:
55 This package provides a fast and reasonably robust HTML5 tokenizer built
@@ -52,8 +52,7 @@ copyright: (c) 2016 Ben Gamari
5252category: Text
5353build-type: Simple
5454cabal-version: >=1.10
55−tested-with: GHC==8.4.*, GHC==8.6.*, GHC==8.8.*, GHC==8.10.*, GHC==9.0.*, GHC==9.2.*, GHC==9.4.*, GHC==9.6.*
56−extra-source-files: changelog.md
55+tested-with: GHC==7.10.* GHC==8.0.*, GHC==8.2.*, GHC==8.4.*, GHC==8.6.*, GHC==8.8.*, GHC==8.10.*, GHC==9.0.*, GHC==9.2.*, GHC==9.4.*
5756
5857
5958source-repository head
@@ -66,7 +65,7 @@ library
6665 ghc-options: -Wall
6766 hs-source-dirs: src
6867 other-extensions: OverloadedStrings, DeriveGeneric
69− build-depends: base >=4.7 && <4.19,
68+ build-depends: base >=4.7 && <4.17,
7069 deepseq >=1.3 && <1.5,
7170 attoparsec >=0.13 && <0.15,
7271 text >=1.2 && <2.1,
@@ -92,7 +91,6 @@ test-suite spec
9291 main-is: Spec.hs
9392 other-modules: Text.HTML.ParserSpec, Text.HTML.TreeSpec
9493 ghc-options: -Wall -with-rtsopts=-T
95− build-tool-depends: hspec-discover:hspec-discover
9694 build-depends: base,
9795 containers,
9896 hspec,
src/Text/HTML/Parser.hs−1
@@ -139,7 +139,6 @@ isWhitespace :: Char -> Bool
139139isWhitespace '\x09' = True
140140isWhitespace '\x0a' = True
141141isWhitespace '\x0c' = True
142−isWhitespace '\x0d' = True
143142isWhitespace ' ' = True
144143isWhitespace _ = False
145144