feed-1.3.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 Source #

Constructors

RSS 
Instances
Show RSS Source # 
Instance details

Defined in Text.RSS.Syntax

Methods

showsPrec :: Int -> RSS -> ShowS #

show :: RSS -> String #

showList :: [RSS] -> ShowS #

type DateString = Text Source #

RFC 822 conforming.

data RSSSource Source #

Instances
Show RSSSource Source # 
Instance details

Defined in Text.RSS.Syntax

data RSSGuid Source #

Instances
Show RSSGuid Source # 
Instance details

Defined in Text.RSS.Syntax

nullRSS Source #

Arguments

:: Text

channel title

-> URLString

channel link

-> RSS 

nullChannel Source #

Arguments

:: Text

rssTitle

-> URLString

rssLink

-> RSSChannel 

nullItem Source #

Arguments

:: Text

title

-> RSSItem 

nullSource Source #

Arguments

:: URLString

source URL

-> Text

title

-> RSSSource 

nullEnclosure Source #

Arguments

:: URLString

enclosure URL

-> Maybe Integer

enclosure length

-> Text

enclosure type

-> RSSEnclosure 

newCategory Source #

Arguments

:: Text

category Value

-> RSSCategory 

nullGuid Source #

Arguments

:: Text

guid value

-> RSSGuid 

nullPermaGuid Source #

Arguments

:: Text

guid value

-> RSSGuid 

nullImage Source #

Arguments

:: URLString

imageURL

-> Text

imageTitle

-> URLString

imageLink

-> RSSImage 

nullTextInput Source #

Arguments

:: Text

inputTitle

-> Text

inputName

-> URLString

inputLink

-> RSSTextInput