feed-0.3.11.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 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 = String #

RFC 822 conforming.

nullRSS #

Arguments

:: String

channel title

-> URLString

channel link

-> RSS 

nullChannel #

Arguments

:: String

rssTitle

-> URLString

rssLink

-> RSSChannel 

nullItem #

Arguments

:: String

title

-> RSSItem 

nullSource #

Arguments

:: URLString

source URL

-> String

title

-> RSSSource 

nullEnclosure #

Arguments

:: URLString

enclosure URL

-> Maybe Integer

enclosure length

-> String

enclosure type

-> RSSEnclosure 

newCategory #

Arguments

:: String

category Value

-> RSSCategory 

nullGuid #

Arguments

:: String

guid value

-> RSSGuid 

nullPermaGuid #

Arguments

:: String

guid value

-> RSSGuid 

nullImage #

Arguments

:: URLString

imageURL

-> String

imageTitle

-> URLString

imageLink

-> RSSImage 

nullTextInput #

Arguments

:: String

inputTitle

-> String

inputName

-> URLString

inputLink

-> RSSTextInput