scalpel 0.6.2 → 0.6.2.1
raw patch · 3 files changed
+10/−4 lines, 3 filesdep ~scalpel-corePVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: scalpel-core
API changes (from Hackage documentation)
- Text.HTML.Scalpel: attr :: (Show str, StringLike str, Monad m) => String -> Selector -> ScraperT str m str
+ Text.HTML.Scalpel: attr :: forall str (m :: Type -> Type). (Show str, StringLike str, Monad m) => String -> Selector -> ScraperT str m str
- Text.HTML.Scalpel: attrs :: (Show str, StringLike str, Monad m) => String -> Selector -> ScraperT str m [str]
+ Text.HTML.Scalpel: attrs :: forall str (m :: Type -> Type). (Show str, StringLike str, Monad m) => String -> Selector -> ScraperT str m [str]
- Text.HTML.Scalpel: chroot :: (StringLike str, Monad m) => Selector -> ScraperT str m a -> ScraperT str m a
+ Text.HTML.Scalpel: chroot :: forall str (m :: Type -> Type) a. (StringLike str, Monad m) => Selector -> ScraperT str m a -> ScraperT str m a
- Text.HTML.Scalpel: chroots :: (StringLike str, Monad m) => Selector -> ScraperT str m a -> ScraperT str m [a]
+ Text.HTML.Scalpel: chroots :: forall str (m :: Type -> Type) a. (StringLike str, Monad m) => Selector -> ScraperT str m a -> ScraperT str m [a]
- Text.HTML.Scalpel: html :: (StringLike str, Monad m) => Selector -> ScraperT str m str
+ Text.HTML.Scalpel: html :: forall str (m :: Type -> Type). (StringLike str, Monad m) => Selector -> ScraperT str m str
- Text.HTML.Scalpel: htmls :: (StringLike str, Monad m) => Selector -> ScraperT str m [str]
+ Text.HTML.Scalpel: htmls :: forall str (m :: Type -> Type). (StringLike str, Monad m) => Selector -> ScraperT str m [str]
- Text.HTML.Scalpel: inSerial :: (StringLike str, Monad m) => SerialScraperT str m a -> ScraperT str m a
+ Text.HTML.Scalpel: inSerial :: forall str (m :: Type -> Type) a. (StringLike str, Monad m) => SerialScraperT str m a -> ScraperT str m a
- Text.HTML.Scalpel: innerHTML :: (StringLike str, Monad m) => Selector -> ScraperT str m str
+ Text.HTML.Scalpel: innerHTML :: forall str (m :: Type -> Type). (StringLike str, Monad m) => Selector -> ScraperT str m str
- Text.HTML.Scalpel: innerHTMLs :: (StringLike str, Monad m) => Selector -> ScraperT str m [str]
+ Text.HTML.Scalpel: innerHTMLs :: forall str (m :: Type -> Type). (StringLike str, Monad m) => Selector -> ScraperT str m [str]
- Text.HTML.Scalpel: matches :: (StringLike str, Monad m) => Selector -> ScraperT str m ()
+ Text.HTML.Scalpel: matches :: forall str (m :: Type -> Type). (StringLike str, Monad m) => Selector -> ScraperT str m ()
- Text.HTML.Scalpel: position :: (StringLike str, Monad m) => ScraperT str m Int
+ Text.HTML.Scalpel: position :: forall str (m :: Type -> Type). (StringLike str, Monad m) => ScraperT str m Int
- Text.HTML.Scalpel: seekBack :: (StringLike str, Monad m) => ScraperT str m a -> SerialScraperT str m a
+ Text.HTML.Scalpel: seekBack :: forall str (m :: Type -> Type) a. (StringLike str, Monad m) => ScraperT str m a -> SerialScraperT str m a
- Text.HTML.Scalpel: seekNext :: (StringLike str, Monad m) => ScraperT str m a -> SerialScraperT str m a
+ Text.HTML.Scalpel: seekNext :: forall str (m :: Type -> Type) a. (StringLike str, Monad m) => ScraperT str m a -> SerialScraperT str m a
- Text.HTML.Scalpel: stepBack :: (StringLike str, Monad m) => ScraperT str m a -> SerialScraperT str m a
+ Text.HTML.Scalpel: stepBack :: forall str (m :: Type -> Type) a. (StringLike str, Monad m) => ScraperT str m a -> SerialScraperT str m a
- Text.HTML.Scalpel: stepNext :: (StringLike str, Monad m) => ScraperT str m a -> SerialScraperT str m a
+ Text.HTML.Scalpel: stepNext :: forall str (m :: Type -> Type) a. (StringLike str, Monad m) => ScraperT str m a -> SerialScraperT str m a
- Text.HTML.Scalpel: text :: (StringLike str, Monad m) => Selector -> ScraperT str m str
+ Text.HTML.Scalpel: text :: forall str (m :: Type -> Type). (StringLike str, Monad m) => Selector -> ScraperT str m str
- Text.HTML.Scalpel: texts :: (StringLike str, Monad m) => Selector -> ScraperT str m [str]
+ Text.HTML.Scalpel: texts :: forall str (m :: Type -> Type). (StringLike str, Monad m) => Selector -> ScraperT str m [str]
- Text.HTML.Scalpel: untilBack :: (StringLike str, Monad m) => ScraperT str m a -> SerialScraperT str m b -> SerialScraperT str m b
+ Text.HTML.Scalpel: untilBack :: forall str (m :: Type -> Type) a b. (StringLike str, Monad m) => ScraperT str m a -> SerialScraperT str m b -> SerialScraperT str m b
- Text.HTML.Scalpel: untilNext :: (StringLike str, Monad m) => ScraperT str m a -> SerialScraperT str m b -> SerialScraperT str m b
+ Text.HTML.Scalpel: untilNext :: forall str (m :: Type -> Type) a b. (StringLike str, Monad m) => ScraperT str m a -> SerialScraperT str m b -> SerialScraperT str m b
Files
- CHANGELOG.md +6/−0
- scalpel.cabal +3/−3
- src/Text/HTML/Scalpel/Internal/Scrape/URL.hs +1/−1
CHANGELOG.md view
@@ -2,7 +2,13 @@ ## HEAD +## 0.6.2.1++- Match Content-Type case-insensitively.+ ## 0.6.2++- Add the monad transformer `ScraperT`. ## 0.6.1
scalpel.cabal view
@@ -1,5 +1,5 @@ name: scalpel-version: 0.6.2+version: 0.6.2.1 synopsis: A high level web scraping library for Haskell. description: Scalpel is a web scraping library inspired by libraries like Parsec and@@ -24,7 +24,7 @@ source-repository this type: git location: https://github.com/fimad/scalpel.git- tag: v0.6.2+ tag: v0.6.2.1 library other-extensions:@@ -38,7 +38,7 @@ default-language: Haskell2010 build-depends: base >= 4.6 && < 5- , scalpel-core == 0.6.2+ , scalpel-core == 0.6.2.1 , bytestring , case-insensitive , data-default
src/Text/HTML/Scalpel/Internal/Scrape/URL.hs view
@@ -91,7 +91,7 @@ body = HTTP.responseBody response headers = HTTP.responseHeaders response contentType = listToMaybe- $ map (Text.decodeLatin1 . snd)+ $ map (Text.toLower . Text.decodeLatin1 . snd) $ take 1 $ dropWhile ((/= "content-type") . fst) headers