feed-1.0.0.0: 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
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

Text.Feed.Query

Description

 

Synopsis

Documentation

type FeedGetter a = Feed -> Maybe a Source #

type ItemGetter a = Item -> Maybe a 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.

getItemAuthor :: ItemGetter Text Source #

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