Text.Feed.Query

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

Copyright | (c) Galois, Inc. 2008, (c) Sigbjorn Finne 2009-
License | BSD3
Maintainer | Sigbjorn Finne <sof@forkIO.com>
Stability | provisional
Portability | portable
Safe Haskell | Safe
Language | Haskell98

Text.Feed.Query

Description

Synopsis

- feedItems :: Feed -> [Item]
- type FeedGetter a = Feed -> Maybe a
- getFeedTitle :: Feed -> String
- getFeedAuthor :: FeedGetter String
- getFeedHome :: FeedGetter URLString
- getFeedHTML :: FeedGetter URLString
- getFeedDescription :: FeedGetter String
- getFeedPubDate :: FeedGetter DateString
- getFeedLastUpdate :: FeedGetter String
- getFeedDate :: FeedGetter DateString
- getFeedLogoLink :: FeedGetter URLString
- getFeedLanguage :: FeedGetter String
- getFeedCategories :: Feed -> [(String, Maybe String)]
- getFeedGenerator :: FeedGetter String
- getFeedItems :: Feed -> [Item]
- type ItemGetter a = Item -> Maybe a
- getItemTitle :: ItemGetter String
- getItemLink :: ItemGetter String
- getItemPublishDate :: ParseTime t => ItemGetter (Maybe t)
- getItemPublishDateString :: ItemGetter DateString
- getItemDate :: ItemGetter DateString
- getItemAuthor :: ItemGetter String
- getItemCommentLink :: ItemGetter URLString
- getItemEnclosure :: ItemGetter (String, Maybe String, Maybe Integer)
- getItemFeedLink :: ItemGetter URLString
- getItemId :: ItemGetter (Bool, String)
- getItemCategories :: Item -> [String]
- getItemRights :: ItemGetter String
- getItemSummary :: ItemGetter String
- getItemDescription :: ItemGetter String

# Documentation

feedItems :: Feed -> [Item] #

type FeedGetter a = Feed -> Maybe a #

getFeedTitle :: Feed -> String #

getFeedAuthor :: FeedGetter String #

getFeedHome :: FeedGetter URLString #

getFeedHTML :: FeedGetter URLString #

getFeedDescription :: FeedGetter String #

getFeedPubDate :: FeedGetter DateString #

getFeedLastUpdate :: FeedGetter String #

getFeedDate :: FeedGetter DateString #

getFeedLogoLink :: FeedGetter URLString #

getFeedLanguage :: FeedGetter String #

getFeedCategories :: Feed -> [(String, Maybe String)] #

getFeedGenerator :: FeedGetter String #

getFeedItems :: Feed -> [Item] #

type ItemGetter a = Item -> Maybe a #

getItemTitle :: ItemGetter String #

getItemLink :: ItemGetter String #

getItemPublishDate :: ParseTime t => ItemGetter (Maybe t) #

'getItemPublishDate item' returns the publication date of the item, but first parsed per the supported RFC 822 and RFC 3339 formats.

If the date string cannot be parsed as such, Just Nothing is returned. The caller must then instead fall back to processing the date string from `getItemPublishDateString`.

The parsed date representation is one of the ParseTime instances; see `Format`.

getItemPublishDateString :: ItemGetter DateString #

getItemDate :: ItemGetter DateString #

getItemAuthor :: ItemGetter String #

'getItemAuthor f' returns the optional author of the item.

getItemCommentLink :: ItemGetter URLString #

getItemEnclosure :: ItemGetter (String, Maybe String, Maybe Integer) #

getItemFeedLink :: ItemGetter URLString #

getItemId :: ItemGetter (Bool, String) #

getItemCategories :: Item -> [String] #

getItemRights :: ItemGetter String #

getItemSummary :: ItemGetter String #

getItemDescription :: ItemGetter String #