feed-0.3.9.5: Interfacing with RSS (v 0.9x, 2.x, 1.0) + Atom feeds.

Copyright(c) Galois, Inc. 2008, (c) Sigbjorn Finne 2009-
LicenseBSD3
MaintainerSigbjorn Finne <sof@forkIO.com>
Stabilityprovisional
Safe HaskellSafe-Inferred
LanguageHaskell98

Text.Feed.Constructor

Description

Description: Module for an abstraction layer between different kinds of feeds.

Synopsis

Documentation

data FeedKind Source

The kinds of feed documents supported.

Instances

newFeed :: FeedKind -> Feed Source

Construct an empty feed document, intending to output it in the fk feed format.

type FeedSetter a = a -> Feed -> Feed Source

withFeedHTML :: FeedSetter URLString Source

withFeedHTML sets the URL where an HTML version of the feed is published.

withFeedDescription :: FeedSetter String Source

withFeedHTML sets the URL where an HTML version of the feed is published.

withFeedDate :: FeedSetter DateString Source

'withFeedDate dt' is the composition of withFeedPubDate and withFeedLastUpdate, setting both publication date and last update date to dt. Notice that RSS2.0 is the only format supporting both pub and last-update.

type ItemSetter a = a -> Item -> Item Source

withItemTitle :: ItemSetter String Source

'withItemTitle myTitle' associates a new title, myTitle, with a feed item.

withItemLink :: ItemSetter URLString Source

'withItemTitle myLink' associates a new URL, myLink, with a feed item.

withItemPubDate :: ItemSetter DateString Source

'withItemPubDate dt' associates the creation/ publication date dt with a feed item.

withItemAuthor :: ItemSetter String Source

'withItemAuthor auStr' associates new author info with a feed item.

withItemCommentLink :: ItemSetter String Source

'withItemCommentLink url' sets the URL reference to the comment page to url.

withItemEnclosure :: String -> Maybe String -> ItemSetter (Maybe Integer) Source

'withItemEnclosure url mbTy len' sets the URL reference to the comment page to url.

withItemFeedLink :: String -> ItemSetter String Source

'withItemFeedLink name myFeed' associates the parent feed URL myFeed with a feed item. It is labelled as name.

withItemId :: Bool -> ItemSetter String Source

'withItemId isURL id' associates new unique identifier with a feed item. If isURL is True, then the id is assumed to point to a valid web resource.

withItemDescription :: ItemSetter String Source

'withItemDescription desc' associates a new descriptive string (aka summary) with a feed item.

withItemRights :: ItemSetter String Source

'withItemRights rightStr' associates the rights information rightStr with a feed item.