Safe Haskell | None |
---|---|
Language | Haskell98 |
Helpers to manipulate feeds
Synopsis
- data FeedRef
- data Feed
- = Rss (RssDocument '[ContentModule, DublinCoreModule])
- | Atom AtomFeed
- data FeedElement
- getFeedTitle :: Feed -> Text
- getElements :: Feed -> [FeedElement]
- getDate :: FeedElement -> Maybe UTCTime
- getTitle :: FeedElement -> Text
- getContent :: FeedElement -> Text
- getHashes :: FeedElement -> [Int]
- prettyElement :: FeedElement -> Doc a
Types
Feed reference: either its URI, or its UID from database
data FeedElement Source #
Instances
Eq FeedElement Source # | |
Defined in Imm.Feed (==) :: FeedElement -> FeedElement -> Bool # (/=) :: FeedElement -> FeedElement -> Bool # | |
Show FeedElement Source # | |
Defined in Imm.Feed showsPrec :: Int -> FeedElement -> ShowS # show :: FeedElement -> String # showList :: [FeedElement] -> ShowS # |
Generic getters
getFeedTitle :: Feed -> Text Source #
getElements :: Feed -> [FeedElement] Source #
getTitle :: FeedElement -> Text Source #
getContent :: FeedElement -> Text Source #
getHashes :: FeedElement -> [Int] Source #
Misc
prettyElement :: FeedElement -> Doc a Source #