packages feed

gscholar-rss 0.2.1.0 → 0.2.2.0

raw patch · 2 files changed

+10/−6 lines, 2 filesdep ~feeddep ~scalpel-core

Dependency ranges changed: feed, scalpel-core

Files

gscholar-rss.cabal view
@@ -1,5 +1,5 @@ name:                gscholar-rss-version:             0.2.1.0+version:             0.2.2.0 synopsis:            scrapes google scholar, provides RSS feed description:         A simple Google Scholar scraper, providing RSS/Atom                      feeds. Check homepage for manual and examples.@@ -19,10 +19,14 @@ executable gscholar-rss   main-is:             Main.hs   build-depends:       base == 4.*,-                       scalpel-core == 0.5.*,-                       feed ^>= 1.0.1.0,+                       scalpel-core >= 0.5 && < 0.7,+                       feed >= 1.0.1.0 && < 1.3,                        text == 1.2.*,                        http-conduit == 2.3.*,                        uri == 0.1.*   hs-source-dirs:      src   default-language:    Haskell2010++source-repository head+    type:     darcs+    location: http://www.ariis.it/link/repos/gscholar-rss/
src/Main.hs view
@@ -118,9 +118,9 @@                       id                       (U.parseURI $ T.unpack url) -          condA = let rn = maybe (error "regname") id-                                 (U.uriRegName uri)-                  in L.isPrefixOf "books.google" rn+          condA = case U.uriRegName uri of+                    Nothing -> False -- citation, no uri+                    Just rn -> L.isPrefixOf "books.google" rn            filtFun :: (String, String) -> Bool           filtFun (l, _) = not (elem l ["ots", "sig"])