Text.Atom.Feed

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-
License | BSD3
Maintainer | Sigbjorn Finne <sof@forkIO.com>
Stability | provisional
Portability | portable
Safe Haskell | Safe
Language | Haskell98

Text.Atom.Feed

Description

# Documentation

type URI = String #

type NCName = String #

type Date = String #

type MediaType = String #

data Feed #

Constructors

Feed |
Fields 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]

Instances

Show Feed # |
Methods showsPrec :: Int -> Feed -> ShowS # show :: Feed -> String # showList :: [Feed] -> ShowS #

data Entry #

Constructors

Entry |
Fields 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]

Instances

Show Entry # |
Methods showsPrec :: Int -> Entry -> ShowS # show :: Entry -> String # showList :: [Entry] -> ShowS #

data EntryContent #

Constructors

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

Instances

Show EntryContent # |
Methods showsPrec :: Int -> EntryContent -> ShowS # show :: EntryContent -> String # showList :: [EntryContent] -> ShowS #

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 # |
Methods showsPrec :: Int -> Category -> ShowS # show :: Category -> String # showList :: [Category] -> ShowS #

data Generator #

Constructors

Generator |
Fields genURI :: Maybe URI genVersion :: Maybe String genText :: String

Instances

Eq Generator # |
Methods (==) :: Generator -> Generator -> Bool # (/=) :: Generator -> Generator -> Bool #
Show Generator # |
Methods showsPrec :: Int -> Generator -> ShowS # show :: Generator -> String # showList :: [Generator] -> ShowS #

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]

Instances

Show Link # |
Methods showsPrec :: Int -> Link -> ShowS # show :: Link -> String # showList :: [Link] -> ShowS #

data TextContent #

Constructors

TextString String |
HTMLString String |
XHTMLString Element |

Instances

Show TextContent # |
Methods showsPrec :: Int -> TextContent -> ShowS # show :: TextContent -> String # showList :: [TextContent] -> ShowS #

txtToString :: TextContent -> String #

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 # |
Methods showsPrec :: Int -> Source -> ShowS # show :: Source -> String # showList :: [Source] -> ShowS #

data Person #

Constructors

Person |
Fields personName :: String personURI :: Maybe URI personEmail :: Maybe String personOther :: [Element]

Instances

Show Person # |
Methods showsPrec :: Int -> Person -> ShowS # show :: Person -> String # showList :: [Person] -> ShowS #

data InReplyTo #

Constructors

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

Instances

Show InReplyTo # |
Methods showsPrec :: Int -> InReplyTo -> ShowS # show :: InReplyTo -> String # showList :: [InReplyTo] -> ShowS #

data InReplyTotal #

Constructors

InReplyTotal |
Fields replyToTotal :: Integer replyToTotalOther :: [Attr]

Instances

Show InReplyTotal # |
Methods showsPrec :: Int -> InReplyTotal -> ShowS # show :: InReplyTotal -> String # showList :: [InReplyTotal] -> ShowS #

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 |

nullSource :: Source #

nullPerson :: Person #