html-conduit 1.1.1.2 → 1.2.0
raw patch · 3 files changed
+8/−6 lines, 3 filesdep −system-filepathdep ~xml-conduitPVP ok
version bump matches the API change (PVP)
Dependencies removed: system-filepath
Dependency ranges changed: xml-conduit
API changes (from Hackage documentation)
Files
- ChangeLog.md +4/−0
- Text/HTML/DOM.hs +2/−3
- html-conduit.cabal +2/−3
ChangeLog.md view
@@ -1,3 +1,7 @@+## 1.2.0++* Drop system-filepath+ ## 1.1.1.2 * Fix a bug with double-unescaping of entities
Text/HTML/DOM.hs view
@@ -22,7 +22,6 @@ import qualified Data.Set as Set import qualified Text.XML as X import Text.XML.Stream.Parse (decodeHtmlEntities)-import qualified Filesystem.Path.CurrentOS as F import Data.Conduit.Binary (sourceFile) import qualified Data.ByteString.Lazy as L import Control.Monad.Trans.Resource (runExceptionT_)@@ -109,8 +108,8 @@ toElement (X.NodeElement e) = Just e toElement _ = Nothing -readFile :: F.FilePath -> IO X.Document-readFile fp = runResourceT $ sourceFile (F.encodeString fp) $$ sinkDoc+readFile :: FilePath -> IO X.Document+readFile fp = runResourceT $ sourceFile fp $$ sinkDoc parseLBS :: L.ByteString -> X.Document parseLBS = parseBSChunks . L.toChunks
html-conduit.cabal view
@@ -1,5 +1,5 @@ Name: html-conduit-Version: 1.1.1.2+Version: 1.2.0 Synopsis: Parse HTML documents using xml-conduit datatypes. Description: This package uses tagstream-conduit for its parser. It automatically balances mismatched tags, so that there shouldn't be any parse failures. It does not handle a full HTML document rendering, such as adding missing html and head tags. Homepage: https://github.com/snoyberg/xml@@ -22,8 +22,7 @@ , resourcet >= 0.3 && < 1.2 , conduit >= 1.0 && < 1.3 , conduit-extra >= 1.1.1- , system-filepath >= 0.4 && < 0.5- , xml-conduit >= 1.1 && < 1.3+ , xml-conduit >= 1.3 && < 1.4 , tagstream-conduit >= 0.5.5.3 && < 0.6 , xml-types >= 0.3 && < 0.4