feed-0.3.8: Interfacing with RSS (v 0.9x, 2.x, 1.0) + Atom feeds.

Portability
Stabilityprovisional
MaintainerSigbjorn Finne <sof@galois.com>

Text.Atom.Feed

Contents

Description

 

Synopsis

Core types

type URI = String

type NCName = String

type Date = String

type MediaType = String

data Feed

Constructors

Feed 

Instances

Show Feed 

data Entry

Instances

Show Entry 

data EntryContent

Constructors

TextContent String 
HTMLContent String 
XHTMLContent Element 
MixedContent (Maybe String) [Content] 
ExternalContent (Maybe MediaType) URI 

Instances

data Category

Constructors

Category 

Fields

catTerm :: String

the tag/term of the category.

catScheme :: Maybe URI

optional URL for identifying the categorization scheme.

catLabel :: Maybe String

human-readable label of the category

catOther :: [Element]

unknown elements, for extensibility.

Instances

Show Category 

data Generator

Constructors

Generator 

Fields

genURI :: Maybe URI
 
genVersion :: Maybe String
 
genText :: String
 

Instances

Eq Generator 
Show Generator 

data Link

Constructors

Link 

Fields

linkHref :: URI
 
linkRel :: Maybe (Either NCName URI)
 
linkType :: Maybe MediaType
 
linkHrefLang :: Maybe String
 
linkTitle :: Maybe String
 
linkLength :: Maybe String
 
linkAttrs :: [Attr]
 
linkOther :: [Element]
 

data TextContent

Constructors

TextString String 
HTMLString String 
XHTMLString Element 

Instances

data Source

Constructors

Source 

Fields

sourceAuthors :: [Person]
 
sourceCategories :: [Category]
 
sourceGenerator :: Maybe Generator
 
sourceIcon :: Maybe URI
 
sourceId :: Maybe String
 
sourceLinks :: [Link]
 
sourceLogo :: Maybe URI
 
sourceRights :: Maybe TextContent
 
sourceSubtitle :: Maybe TextContent
 
sourceTitle :: Maybe TextContent
 
sourceUpdated :: Maybe Date
 
sourceOther :: [Element]
 

Instances

Show Source 

data Person

Constructors

Person 

Fields

personName :: String
 
personURI :: Maybe URI
 
personEmail :: Maybe String
 
personOther :: [Element]
 

Instances

Show Person 

data InReplyTo

Constructors

InReplyTo 

Fields

replyToRef :: URI
 
replyToHRef :: Maybe URI
 
replyToType :: Maybe MediaType
 
replyToSource :: Maybe URI
 
replyToOther :: [Attr]
 
replyToContent :: [Content]
 

Instances

Show InReplyTo 

data InReplyTotal

Constructors

InReplyTotal 

Fields

replyToTotal :: Integer
 
replyToTotalOther :: [Attr]
 

Instances

Smart Constructors

newCategory

Arguments

:: String

catTerm

-> Category 

nullFeed

Arguments

:: String

feedId

-> TextContent

feedTitle

-> Date

feedUpdated

-> Feed 

nullEntry

Arguments

:: String

entryId

-> TextContent

entryTitle

-> Date

entryUpdated

-> Entry 

nullGenerator

Arguments

:: String

genText

-> Generator 

nullLink

Arguments

:: URI

linkHref

-> Link