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 :: String
- rssAttrs :: [Attr]
- rssChannel :: RSSChannel
- rssOther :: [Element]
- type URLString = String
- type DateString = String
- data RSSChannel = RSSChannel {
- rssTitle :: String
- rssLink :: URLString
- rssDescription :: String
- rssItems :: [RSSItem]
- rssLanguage :: Maybe String
- rssCopyright :: Maybe String
- rssEditor :: Maybe String
- rssWebMaster :: Maybe String
- rssPubDate :: Maybe DateString
- rssLastUpdate :: Maybe DateString
- rssCategories :: [RSSCategory]
- rssGenerator :: Maybe String
- rssDocs :: Maybe URLString
- rssCloud :: Maybe RSSCloud
- rssTTL :: Maybe Integer
- rssImage :: Maybe RSSImage
- rssRating :: Maybe String
- rssTextInput :: Maybe RSSTextInput
- rssSkipHours :: Maybe [Integer]
- rssSkipDays :: Maybe [String]
- rssChannelOther :: [Element]
- data RSSItem = RSSItem {
- rssItemTitle :: Maybe String
- rssItemLink :: Maybe URLString
- rssItemDescription :: Maybe String
- rssItemAuthor :: Maybe String
- 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 {}
- data RSSImage = RSSImage {}
- data RSSCloud = RSSCloud {}
- data RSSTextInput = RSSTextInput {}
- nullRSS :: String -> URLString -> RSS
- nullChannel :: String -> URLString -> RSSChannel
- nullItem :: String -> RSSItem
- nullSource :: URLString -> String -> RSSSource
- nullEnclosure :: URLString -> Maybe Integer -> String -> RSSEnclosure
- newCategory :: String -> RSSCategory
- nullGuid :: String -> RSSGuid
- nullPermaGuid :: String -> RSSGuid
- nullImage :: URLString -> String -> URLString -> RSSImage
- nullCloud :: RSSCloud
- nullTextInput :: String -> String -> URLString -> RSSTextInput
Documentation
RSS | |
|
type DateString = String Source
RFC 822 conforming.
data RSSChannel Source
RSSChannel | |
|
RSSItem | |
|
RSSSource | |
|
data RSSCategory Source
RSSGuid | |
|
:: String | rssTitle |
-> URLString | rssLink |
-> RSSChannel |
:: URLString | enclosure URL |
-> Maybe Integer | enclosure length |
-> String | enclosure type |
-> RSSEnclosure |
:: String | category Value |
-> RSSCategory |
:: String | inputTitle |
-> String | inputName |
-> URLString | inputLink |
-> RSSTextInput |