Copyright | (c) Galois Inc. 2008 (c) Sigbjorn Finne 2009- |
---|---|
License | BSD3 |
Maintainer | Sigbjorn Finne <sof@forkIO.com> |
Stability | provisional |
Safe Haskell | Safe |
Language | Haskell98 |
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")]}}
- data RSS = RSS {
- rssVersion :: Text
- rssAttrs :: [Attr]
- rssChannel :: RSSChannel
- rssOther :: [Element]
- type URLString = Text
- type DateString = Text
- data RSSChannel = RSSChannel {
- rssTitle :: Text
- rssLink :: URLString
- rssDescription :: Text
- rssItems :: [RSSItem]
- rssLanguage :: Maybe Text
- rssCopyright :: Maybe Text
- rssEditor :: Maybe Text
- rssWebMaster :: Maybe Text
- rssPubDate :: Maybe DateString
- rssLastUpdate :: Maybe DateString
- rssCategories :: [RSSCategory]
- rssGenerator :: Maybe Text
- rssDocs :: Maybe URLString
- rssCloud :: Maybe RSSCloud
- rssTTL :: Maybe Integer
- rssImage :: Maybe RSSImage
- rssRating :: Maybe Text
- rssTextInput :: Maybe RSSTextInput
- rssSkipHours :: Maybe [Integer]
- rssSkipDays :: Maybe [Text]
- rssChannelOther :: [Element]
- data RSSItem = RSSItem {
- rssItemTitle :: Maybe Text
- rssItemLink :: Maybe URLString
- rssItemDescription :: Maybe Text
- rssItemAuthor :: Maybe Text
- rssItemCategories :: [RSSCategory]
- rssItemComments :: Maybe URLString
- rssItemEnclosure :: Maybe RSSEnclosure
- rssItemGuid :: Maybe RSSGuid
- rssItemPubDate :: Maybe DateString
- rssItemSource :: Maybe RSSSource
- rssItemAttrs :: [Attr]
- rssItemOther :: [Element]
- data RSSSource = RSSSource {}
- data RSSEnclosure = RSSEnclosure {}
- data RSSCategory = RSSCategory {}
- data RSSGuid = RSSGuid {
- rssGuidPermanentURL :: Maybe Bool
- rssGuidAttrs :: [Attr]
- rssGuidValue :: Text
- data RSSImage = RSSImage {}
- data RSSCloud = RSSCloud {}
- data RSSTextInput = RSSTextInput {}
- nullRSS :: Text -> URLString -> RSS
- nullChannel :: Text -> URLString -> RSSChannel
- nullItem :: Text -> RSSItem
- nullSource :: URLString -> Text -> RSSSource
- nullEnclosure :: URLString -> Maybe Integer -> Text -> RSSEnclosure
- newCategory :: Text -> RSSCategory
- nullGuid :: Text -> RSSGuid
- nullPermaGuid :: Text -> RSSGuid
- nullImage :: URLString -> Text -> URLString -> RSSImage
- nullCloud :: RSSCloud
- nullTextInput :: Text -> Text -> URLString -> RSSTextInput
Documentation
RSS | |
|
type DateString = Text Source #
RFC 822 conforming.
data RSSChannel Source #
RSSChannel | |
|
RSSItem | |
|
RSSSource | |
|
data RSSCategory Source #
RSSGuid | |
|
RSSImage | |
|
data RSSTextInput Source #
:: Text | rssTitle |
-> URLString | rssLink |
-> RSSChannel |
:: URLString | enclosure URL |
-> Maybe Integer | enclosure length |
-> Text | enclosure type |
-> RSSEnclosure |
:: Text | category Value |
-> RSSCategory |
:: Text | inputTitle |
-> Text | inputName |
-> URLString | inputLink |
-> RSSTextInput |