git.iko.soy/typeable/html-parse
on master help sign in
3 files changed+6−39
since splitsnapshots
unifiedsplit
.github/workflows/haskell-ci.yml+2−37 html-parse.cabal+3−2 src/Text/HTML/Parser.hs+1
.github/workflows/haskell-ci.yml+2−37
@@ -163,41 +163,6 @@ 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
201166 fail-fast: false
202167 steps:
203168 - name: apt
@@ -324,8 +289,8 @@ jobs:
324289 touch cabal.project
325290 touch cabal.project.local
326291 echo "packages: ${PKGDIR_html_parse}" >> 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
292+ echo "package html-parse" >> cabal.project
293+ echo " ghc-options: -Werror=missing-methods" >> cabal.project
329294 cat >> cabal.project <<EOF
330295 EOF
331296 $HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(html-parse)$/; }' >> cabal.project.local
html-parse.cabal+3−2
@@ -52,7 +52,7 @@ copyright: (c) 2016 Ben Gamari
5252category: Text
5353build-type: Simple
5454cabal-version: >=1.10
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.*
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.*
5656extra-source-files: changelog.md
5757
5858
@@ -66,7 +66,7 @@ library
6666 ghc-options: -Wall
6767 hs-source-dirs: src
6868 other-extensions: OverloadedStrings, DeriveGeneric
69− build-depends: base >=4.7 && <4.18,
69+ build-depends: base >=4.7 && <4.19,
7070 deepseq >=1.3 && <1.5,
7171 attoparsec >=0.13 && <0.15,
7272 text >=1.2 && <2.1,
@@ -92,6 +92,7 @@ test-suite spec
9292 main-is: Spec.hs
9393 other-modules: Text.HTML.ParserSpec, Text.HTML.TreeSpec
9494 ghc-options: -Wall -with-rtsopts=-T
95+ build-tool-depends: hspec-discover:hspec-discover
9596 build-depends: base,
9697 containers,
9798 hspec,
src/Text/HTML/Parser.hs+1
@@ -139,6 +139,7 @@ isWhitespace :: Char -> Bool
139139isWhitespace '\x09' = True
140140isWhitespace '\x0a' = True
141141isWhitespace '\x0c' = True
142+isWhitespace '\x0d' = True
142143isWhitespace ' ' = True
143144isWhitespace _ = False
144145