feed-0.3.7: Interfacing with RSS (v 0.9x, 2.x, 1.0) + Atom feeds.Source codeContentsIndex
Text.Atom.Feed
Portability
Stabilityprovisional
MaintainerSigbjorn Finne <sof@galois.com>
Contents
Core types
Smart Constructors
Description
Synopsis
type URI = String
type NCName = String
type Date = String
type MediaType = String
data Feed = Feed {
feedId :: String
feedTitle :: TextContent
feedUpdated :: Date
feedAuthors :: [Person]
feedCategories :: [Category]
feedContributors :: [Person]
feedGenerator :: Maybe Generator
feedIcon :: Maybe URI
feedLinks :: [Link]
feedLogo :: Maybe URI
feedRights :: Maybe TextContent
feedSubtitle :: Maybe TextContent
feedEntries :: [Entry]
feedAttrs :: [Attr]
feedOther :: [Element]
}
data Entry = Entry {
entryId :: String
entryTitle :: TextContent
entryUpdated :: Date
entryAuthors :: [Person]
entryCategories :: [Category]
entryContent :: Maybe EntryContent
entryContributor :: [Person]
entryLinks :: [Link]
entryPublished :: Maybe Date
entryRights :: Maybe TextContent
entrySource :: Maybe Source
entrySummary :: Maybe TextContent
entryInReplyTo :: Maybe InReplyTo
entryInReplyTotal :: Maybe InReplyTotal
entryAttrs :: [Attr]
entryOther :: [Element]
}
data EntryContent
= TextContent String
| HTMLContent String
| XHTMLContent Element
| MixedContent (Maybe String) [Content]
| ExternalContent (Maybe MediaType) URI
data Category = Category {
catTerm :: String
catScheme :: Maybe URI
catLabel :: Maybe String
catOther :: [Element]
}
data Generator = Generator {
genURI :: Maybe URI
genVersion :: Maybe String
genText :: String
}
data Link = Link {
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
= TextString String
| HTMLString String
| XHTMLString Element
txtToString :: TextContent -> String
data Source = Source {
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]
}
data Person = Person {
personName :: String
personURI :: Maybe URI
personEmail :: Maybe String
personOther :: [Element]
}
data InReplyTo = InReplyTo {
replyToRef :: URI
replyToHRef :: Maybe URI
replyToType :: Maybe MediaType
replyToSource :: Maybe URI
replyToOther :: [Attr]
replyToContent :: [Content]
}
data InReplyTotal = InReplyTotal {
replyToTotal :: Integer
replyToTotalOther :: [Attr]
}
newCategory :: String -> Category
nullFeed :: String -> TextContent -> Date -> Feed
nullEntry :: String -> TextContent -> Date -> Entry
nullGenerator :: String -> Generator
nullLink :: URI -> Link
nullSource :: Source
nullPerson :: Person
Core types
type URI = StringSource
type NCName = StringSource
type Date = StringSource
type MediaType = StringSource
data Feed Source
Constructors
Feed
feedId :: String
feedTitle :: TextContent
feedUpdated :: Date
feedAuthors :: [Person]
feedCategories :: [Category]
feedContributors :: [Person]
feedGenerator :: Maybe Generator
feedIcon :: Maybe URI
feedLinks :: [Link]
feedLogo :: Maybe URI
feedRights :: Maybe TextContent
feedSubtitle :: Maybe TextContent
feedEntries :: [Entry]
feedAttrs :: [Attr]
feedOther :: [Element]
show/hide Instances
data Entry Source
Constructors
Entry
entryId :: String
entryTitle :: TextContent
entryUpdated :: Date
entryAuthors :: [Person]
entryCategories :: [Category]
entryContent :: Maybe EntryContent
entryContributor :: [Person]
entryLinks :: [Link]
entryPublished :: Maybe Date
entryRights :: Maybe TextContent
entrySource :: Maybe Source
entrySummary :: Maybe TextContent
entryInReplyTo :: Maybe InReplyTo
entryInReplyTotal :: Maybe InReplyTotal
entryAttrs :: [Attr]
entryOther :: [Element]
show/hide Instances
data EntryContent Source
Constructors
TextContent String
HTMLContent String
XHTMLContent Element
MixedContent (Maybe String) [Content]
ExternalContent (Maybe MediaType) URI
show/hide Instances
data Category Source
Constructors
Category
catTerm :: Stringthe tag/term of the category.
catScheme :: Maybe URIoptional URL for identifying the categorization scheme.
catLabel :: Maybe Stringhuman-readable label of the category
catOther :: [Element]unknown elements, for extensibility.
show/hide Instances
data Generator Source
Constructors
Generator
genURI :: Maybe URI
genVersion :: Maybe String
genText :: String
show/hide Instances
data Link Source
Constructors
Link
linkHref :: URI
linkRel :: Maybe (Either NCName URI)
linkType :: Maybe MediaType
linkHrefLang :: Maybe String
linkTitle :: Maybe String
linkLength :: Maybe String
linkAttrs :: [Attr]
linkOther :: [Element]
show/hide Instances
data TextContent Source
Constructors
TextString String
HTMLString String
XHTMLString Element
show/hide Instances
txtToString :: TextContent -> StringSource
data Source Source
Constructors
Source
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]
show/hide Instances
data Person Source
Constructors
Person
personName :: String
personURI :: Maybe URI
personEmail :: Maybe String
personOther :: [Element]
show/hide Instances
data InReplyTo Source
Constructors
InReplyTo
replyToRef :: URI
replyToHRef :: Maybe URI
replyToType :: Maybe MediaType
replyToSource :: Maybe URI
replyToOther :: [Attr]
replyToContent :: [Content]
show/hide Instances
data InReplyTotal Source
Constructors
InReplyTotal
replyToTotal :: Integer
replyToTotalOther :: [Attr]
show/hide Instances
Smart Constructors
newCategorySource
:: StringcatTerm
-> Category
nullFeedSource
:: StringfeedId
-> TextContentfeedTitle
-> DatefeedUpdated
-> Feed
nullEntrySource
:: StringentryId
-> TextContententryTitle
-> DateentryUpdated
-> Entry
nullGeneratorSource
:: StringgenText
-> Generator
nullLinkSource
:: URIlinkHref
-> Link
nullSource :: SourceSource
nullPerson :: PersonSource
Produced by Haddock version 2.4.2