Safe Haskell | None |
---|---|
Language | Haskell98 |
- newsFeed :: MonadHandler m => Feed (Route (HandlerSite m)) -> m TypedContent
- newsFeedText :: MonadHandler m => Feed Text -> m TypedContent
- data Feed url = Feed {
- feedTitle :: Text
- feedLinkSelf :: url
- feedLinkHome :: url
- feedAuthor :: Text
- feedDescription :: Html
- feedLanguage :: Text
- feedUpdated :: UTCTime
- feedLogo :: Maybe (url, Text)
- feedEntries :: [FeedEntry url]
- data FeedEntry url = FeedEntry {
- feedEntryLink :: url
- feedEntryUpdated :: UTCTime
- feedEntryTitle :: Text
- feedEntryContent :: Html
- feedEntryEnclosure :: Maybe (EntryEnclosure url)
- data EntryEnclosure url = EntryEnclosure {
- enclosedUrl :: url
- enclosedSize :: Int
- enclosedMimeType :: Text
Documentation
newsFeed :: MonadHandler m => Feed (Route (HandlerSite m)) -> m TypedContent Source
newsFeedText :: MonadHandler m => Feed Text -> m TypedContent Source
Same as
but for newsFeed
'Feed Text'
. Useful for cases where you are
generating a feed of external links.
The overall feed
Feed | |
|
Each feed entry
FeedEntry | |
|
data EntryEnclosure url Source
RSS and Atom allow for linked content to be enclosed in a feed entry. This represents the enclosed content.
Atom feeds ignore enclosedSize
and enclosedMimeType
.
Since: 1.6
EntryEnclosure | |
|