git.iko.soy/typeable/html-parse
on master help sign in
4 files changed+18−40
since splitsnapshots
unifiedsplit
.github/workflows/haskell-ci.yml+2−37 changelog.md+10 html-parse.cabal+5−3 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
changelog.mdnew file+10
@@ -0,0 +1,10 @@
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+5−3
@@ -1,5 +1,5 @@
11name: html-parse
2−version: 0.2.0.2
2+version: 0.2.1.0
33synopsis: A high-performance HTML tokenizer
44description:
55 This package provides a fast and reasonably robust HTML5 tokenizer built
@@ -52,7 +52,8 @@ 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.*
56+extra-source-files: changelog.md
5657
5758
5859source-repository head
@@ -65,7 +66,7 @@ library
6566 ghc-options: -Wall
6667 hs-source-dirs: src
6768 other-extensions: OverloadedStrings, DeriveGeneric
68− build-depends: base >=4.7 && <4.17,
69+ build-depends: base >=4.7 && <4.19,
6970 deepseq >=1.3 && <1.5,
7071 attoparsec >=0.13 && <0.15,
7172 text >=1.2 && <2.1,
@@ -91,6 +92,7 @@ test-suite spec
9192 main-is: Spec.hs
9293 other-modules: Text.HTML.ParserSpec, Text.HTML.TreeSpec
9394 ghc-options: -Wall -with-rtsopts=-T
95+ build-tool-depends: hspec-discover:hspec-discover
9496 build-depends: base,
9597 containers,
9698 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