feed-1.3.2.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-Inferred
LanguageHaskell2010

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 

Fields

Instances

Instances details
Show RSS Source # 
Instance details

Defined in Text.RSS.Syntax

Methods

showsPrec :: Int -> RSS -> ShowS

show :: RSS -> String

showList :: [RSS] -> ShowS

type URLString = Text Source #

type DateString = Text Source #

RFC 822 conforming.

data RSSChannel Source #

Constructors

RSSChannel 

Fields

Instances

Instances details
Show RSSChannel Source # 
Instance details

Defined in Text.RSS.Syntax

Methods

showsPrec :: Int -> RSSChannel -> ShowS

show :: RSSChannel -> String

showList :: [RSSChannel] -> ShowS

data RSSItem Source #

Constructors

RSSItem 

Fields

Instances

Instances details
Show RSSItem Source # 
Instance details

Defined in Text.RSS.Syntax

Methods

showsPrec :: Int -> RSSItem -> ShowS

show :: RSSItem -> String

showList :: [RSSItem] -> ShowS

data RSSSource Source #

Constructors

RSSSource 

Instances

Instances details
Show RSSSource Source # 
Instance details

Defined in Text.RSS.Syntax

Methods

showsPrec :: Int -> RSSSource -> ShowS

show :: RSSSource -> String

showList :: [RSSSource] -> ShowS

data RSSEnclosure Source #

Constructors

RSSEnclosure 

Instances

Instances details
Show RSSEnclosure Source # 
Instance details

Defined in Text.RSS.Syntax

Methods

showsPrec :: Int -> RSSEnclosure -> ShowS

show :: RSSEnclosure -> String

showList :: [RSSEnclosure] -> ShowS

data RSSCategory Source #

Constructors

RSSCategory 

Fields

Instances

Instances details
Show RSSCategory Source # 
Instance details

Defined in Text.RSS.Syntax

Methods

showsPrec :: Int -> RSSCategory -> ShowS

show :: RSSCategory -> String

showList :: [RSSCategory] -> ShowS

data RSSGuid Source #

Constructors

RSSGuid 

Fields

Instances

Instances details
Show RSSGuid Source # 
Instance details

Defined in Text.RSS.Syntax

Methods

showsPrec :: Int -> RSSGuid -> ShowS

show :: RSSGuid -> String

showList :: [RSSGuid] -> ShowS

data RSSImage Source #

Constructors

RSSImage 

Fields

Instances

Instances details
Show RSSImage Source # 
Instance details

Defined in Text.RSS.Syntax

Methods

showsPrec :: Int -> RSSImage -> ShowS

show :: RSSImage -> String

showList :: [RSSImage] -> ShowS

data RSSCloud Source #

Constructors

RSSCloud 

Fields

Instances

Instances details
Show RSSCloud Source # 
Instance details

Defined in Text.RSS.Syntax

Methods

showsPrec :: Int -> RSSCloud -> ShowS

show :: RSSCloud -> String

showList :: [RSSCloud] -> ShowS

data RSSTextInput Source #

Instances

Instances details
Show RSSTextInput Source # 
Instance details

Defined in Text.RSS.Syntax

Methods

showsPrec :: Int -> RSSTextInput -> ShowS

show :: RSSTextInput -> String

showList :: [RSSTextInput] -> ShowS

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