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

PortabilityPortable
StabilityStable
MaintainerPatrick Brisbin <me@pbrisbin.com>

Yesod.Helpers.Feed

Description

A generic feed that will reply with either Atom or Rss depending on what's requested.

Atom spec: http://en.wikipedia.org/wiki/Atom_(standard) Rss spec: http://www.rssboard.org/rss-specification

Synopsis

Documentation

newsFeed :: Monad mo => Feed (Route master) -> GGHandler sub master mo RepAtomRssSource

The feed itself

data RepAtomRss Source

The Rss/Atom content type

Constructors

RepAtomRss RepAtom RepRss 

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