feed-1.3.0.1: 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 HaskellNone
LanguageHaskell98

Text.Feed.Import

Description

Convert from XML to Feeds.

Synopsis

Documentation

parseFeedFromFile :: FilePath -> IO (Maybe Feed) Source #

'parseFeedFromFile fp' reads in the contents of the file at fp; the assumed encoding is UTF-8.

parseFeedSource :: FeedSource s => s -> Maybe Feed Source #

'parseFeedSource s' tries to parse the source s as one of the feed formats. First as Atom, then RSS2 before giving RSS1 a try. Nothing is, rather unhelpfully, returned as an indication of error.

class FeedSource s Source #

Minimal complete definition

parseFeedSourceXML

readRSS2 :: Element -> Maybe Feed Source #

'readRSS2 elt' tries to derive an RSS2.x, RSS-0.9x feed document from the XML element e.

readRSS1 :: Element -> Maybe Feed Source #

'readRSS1 elt' tries to derive an RSS1.0 feed document from the XML element e.

readAtom :: Element -> Maybe Feed Source #

'readAtom elt' tries to derive an Atom feed document from the XML element e.