yesod-newsfeed-0.0.0.1: Helper functions and data types for producing News feeds.

PortabilityPortable
StabilityStable
MaintainerPatrick Brisbin <me@pbrisbin.com>

Yesod.Helpers.RssFeed

Description

An Rss news feed.

Rss spec: http://www.rssboard.org/rss-specification

Synopsis

Documentation

rssFeed :: Monad mo => Feed (Route master) -> GGHandler sub master mo RepRssSource

The feed response itself

rssLinkSource

Arguments

:: Route m 
-> String

title

-> GWidget s m () 

Generates a link tag in the head of a widget.

newtype RepRss Source

The Rss content type

Constructors

RepRss Content 

Instances

data Feed url Source

The overall feed

Constructors

Feed 

Fields

feedTitle :: String
 
feedLinkSelf :: url
 
feedLinkHome :: url
 
feedDescription :: Html

note: currently only used for Rss

feedLanguage :: String

note: currently only used for Rss, possible values: http://www.rssboard.org/rss-language-codes

feedUpdated :: UTCTime
 
feedEntries :: [FeedEntry url]
 

data FeedEntry url Source

Each feed entry