feed-1.3.2.1: 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 | None
Language | Haskell2010

Text.Feed.Query

Description

Synopsis

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

# Documentation

feedItems :: Feed -> [Item] Source #

type FeedGetter a = Feed -> Maybe a Source #

getFeedTitle :: Feed -> Text Source #

getFeedAuthor :: FeedGetter Text Source #

getFeedHome :: FeedGetter URLString Source #

getFeedHTML :: FeedGetter URLString Source #

getFeedDescription :: FeedGetter Text Source #

getFeedPubDate :: FeedGetter DateString Source #

getFeedLastUpdate :: FeedGetter Text Source #

getFeedDate :: FeedGetter DateString Source #

getFeedLogoLink :: FeedGetter URLString Source #

getFeedLanguage :: FeedGetter Text Source #

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

getFeedGenerator :: FeedGetter Text Source #

getFeedItems :: Feed -> [Item] Source #

type ItemGetter a = Item -> Maybe a Source #

getItemTitle :: ItemGetter Text Source #

getItemLink :: ItemGetter Text Source #

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

'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 Source #

getItemDate :: ItemGetter DateString Source #

getItemAuthor :: ItemGetter Text Source #

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

getItemCommentLink :: ItemGetter URLString Source #

getItemEnclosure :: ItemGetter (URI, Maybe Text, Maybe Integer) Source #

getItemFeedLink :: ItemGetter URLString Source #

getItemId :: ItemGetter (Bool, Text) Source #

getItemCategories :: Item -> [Text] Source #

getItemRights :: ItemGetter Text Source #

getItemSummary :: ItemGetter Text Source #

getItemContent :: ItemGetter Text Source #

getItemDescription :: ItemGetter Text Source #