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

Safe HaskellNone
LanguageHaskell98

Yesod.AtomFeed

Description

Generation of Atom newsfeeds.

Synopsis

Documentation

atomFeedText :: MonadHandler m => Feed Text -> m RepAtom Source #

Same as atomFeed but for 'Feed Text'. Useful for cases where you are generating a feed of external links.

atomLink Source #

Arguments

:: MonadWidget m 
=> Route (HandlerSite m) 
-> Text

title

-> m () 

Generates a link tag in the head of a widget.

newtype RepAtom Source #

Constructors

RepAtom Content 
Instances
ToContent RepAtom Source # 
Instance details

Defined in Yesod.AtomFeed

Methods

toContent :: RepAtom -> Content #

HasContentType RepAtom Source # 
Instance details

Defined in Yesod.AtomFeed

ToTypedContent RepAtom Source # 
Instance details

Defined in Yesod.AtomFeed

data Feed url Source #

The overall feed

Constructors

Feed 

Fields

data FeedEntry url Source #

Each feed entry

Constructors

FeedEntry 

Fields

data EntryEnclosure url Source #

RSS and Atom allow for linked content to be enclosed in a feed entry. This represents the enclosed content.

Atom feeds ignore enclosedSize and enclosedMimeType.

Since: 1.6

Constructors

EntryEnclosure 

Fields

data EntryCategory Source #

RSS 2.0 and Atom allow category in a feed entry.

RSS feeds ignore categoryLabel

Since: 1.7

Constructors

EntryCategory 

Fields