yesod-sitemap 1.4.0.1 → 1.6.0
raw patch · 3 files changed
+10/−7 lines, 3 filesdep ~yesod-corePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: yesod-core
API changes (from Hackage documentation)
- Yesod.Sitemap: sitemapChangeFreq :: SitemapUrl url -> Maybe SitemapChangeFreq
- Yesod.Sitemap: sitemapLastMod :: SitemapUrl url -> Maybe UTCTime
- Yesod.Sitemap: sitemapLoc :: SitemapUrl url -> url
- Yesod.Sitemap: sitemapPriority :: SitemapUrl url -> Maybe Double
+ Yesod.Sitemap: [sitemapChangeFreq] :: SitemapUrl url -> Maybe SitemapChangeFreq
+ Yesod.Sitemap: [sitemapLastMod] :: SitemapUrl url -> Maybe UTCTime
+ Yesod.Sitemap: [sitemapLoc] :: SitemapUrl url -> url
+ Yesod.Sitemap: [sitemapPriority] :: SitemapUrl url -> Maybe Double
- Yesod.Sitemap: sitemap :: Source (HandlerT site IO) (SitemapUrl (Route site)) -> HandlerT site IO TypedContent
+ Yesod.Sitemap: sitemap :: ConduitT () (SitemapUrl (Route site)) (HandlerFor site) () -> HandlerFor site TypedContent
- Yesod.Sitemap: sitemapConduit :: Monad m => (a -> Text) -> Conduit (SitemapUrl a) m Event
+ Yesod.Sitemap: sitemapConduit :: Monad m => (a -> Text) -> ConduitT (SitemapUrl a) Event m ()
- Yesod.Sitemap: sitemapList :: [SitemapUrl (Route site)] -> HandlerT site IO TypedContent
+ Yesod.Sitemap: sitemapList :: [SitemapUrl (Route site)] -> HandlerFor site TypedContent
Files
- ChangeLog.md +3/−0
- Yesod/Sitemap.hs +5/−5
- yesod-sitemap.cabal +2/−2
ChangeLog.md view
@@ -0,0 +1,3 @@+## 1.6.0++* Upgrade to yesod-core 1.6.0
Yesod/Sitemap.hs view
@@ -74,19 +74,19 @@ -- | Serve a stream of @SitemapUrl@s as a sitemap. -- -- Since 1.2.0-sitemap :: Source (HandlerT site IO) (SitemapUrl (Route site))- -> HandlerT site IO TypedContent+sitemap :: ConduitT () (SitemapUrl (Route site)) (HandlerFor site) ()+ -> HandlerFor site TypedContent sitemap urls = do render <- getUrlRender respondSource typeXml $ do yield Flush- urls $= sitemapConduit render $= renderBuilder def $= CL.map Chunk+ urls .| sitemapConduit render .| renderBuilder def .| CL.map Chunk -- | Convenience wrapper for @sitemap@ for the case when the input is an -- in-memory list. -- -- Since 1.2.0-sitemapList :: [SitemapUrl (Route site)] -> HandlerT site IO TypedContent+sitemapList :: [SitemapUrl (Route site)] -> HandlerFor site TypedContent sitemapList = sitemap . mapM_ yield -- | Convert a stream of @SitemapUrl@s to XML @Event@s using the given URL@@ -97,7 +97,7 @@ -- Since 1.2.0 sitemapConduit :: Monad m => (a -> Text)- -> Conduit (SitemapUrl a) m Event+ -> ConduitT (SitemapUrl a) Event m () sitemapConduit render = do yield EventBeginDocument element "urlset" [] $ awaitForever goUrl
yesod-sitemap.cabal view
@@ -1,5 +1,5 @@ name: yesod-sitemap-version: 1.4.0.1+version: 1.6.0 license: MIT license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>@@ -15,7 +15,7 @@ library build-depends: base >= 4 && < 5- , yesod-core >= 1.4 && < 1.5+ , yesod-core >= 1.6 && < 1.7 , time >= 1.1.4 , xml-conduit >= 1.0 , text