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
Safe HaskellSafe
LanguageHaskell98

Text.RSS.Syntax

Description

The basic syntax for putting together feeds.

For instance, to create a feed with a single item item: (nullRSS "rss title" "link") {rssChannel=(nullChannel "channel title" "link") {rssItems=[(nullItem "item title")]}}

Synopsis

Documentation

data RSS #

Constructors

RSS 

Instances

Show RSS # 

Methods

showsPrec :: Int -> RSS -> ShowS #

show :: RSS -> String #

showList :: [RSS] -> ShowS #

type DateString = Text #

RFC 822 conforming.

data RSSGuid #

Instances

nullRSS #

Arguments

:: Text

channel title

-> URLString

channel link

-> RSS 

nullChannel #

Arguments

:: Text

rssTitle

-> URLString

rssLink

-> RSSChannel 

nullItem #

Arguments

:: Text

title

-> RSSItem 

nullSource #

Arguments

:: URLString

source URL

-> Text

title

-> RSSSource 

nullEnclosure #

Arguments

:: URLString

enclosure URL

-> Maybe Integer

enclosure length

-> Text

enclosure type

-> RSSEnclosure 

newCategory #

Arguments

:: Text

category Value

-> RSSCategory 

nullGuid #

Arguments

:: Text

guid value

-> RSSGuid 

nullPermaGuid #

Arguments

:: Text

guid value

-> RSSGuid 

nullImage #

Arguments

:: URLString

imageURL

-> Text

imageTitle

-> URLString

imageLink

-> RSSImage 

nullTextInput #

Arguments

:: Text

inputTitle

-> Text

inputName

-> URLString

inputLink

-> RSSTextInput