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 Source

Constructors

RSS 

Instances

type DateString = String Source

RFC 822 conforming.

nullRSS Source

Arguments

:: String

channel title

-> URLString

channel link

-> RSS 

nullChannel Source

Arguments

:: String

rssTitle

-> URLString

rssLink

-> RSSChannel 

nullItem Source

Arguments

:: String

title

-> RSSItem 

nullSource Source

Arguments

:: URLString

source URL

-> String

title

-> RSSSource 

nullEnclosure Source

Arguments

:: URLString

enclosure URL

-> Maybe Integer

enclosure length

-> String

enclosure type

-> RSSEnclosure 

newCategory Source

Arguments

:: String

category Value

-> RSSCategory 

nullGuid Source

Arguments

:: String

guid value

-> RSSGuid 

nullPermaGuid Source

Arguments

:: String

guid value

-> RSSGuid 

nullImage Source

Arguments

:: URLString

imageURL

-> String

imageTitle

-> URLString

imageLink

-> RSSImage 

nullTextInput Source

Arguments

:: String

inputTitle

-> String

inputName

-> URLString

inputLink

-> RSSTextInput