Safe Haskell | None |
---|---|
Language | Haskell2010 |
Support for RSS extensions. Cf specification at http://web.resource.org/rss/1.0/modules/.
For now, only parsing is implemented. Rendering will be implemented later.
- class ParseRssExtension a where
- type ParseRssExtensions e = (AllConstrained ParseRssExtension e, SingI e)
- parseRssChannelExtensions :: ParseRssExtensions e => MonadThrow m => ConduitM Event o m (RssChannelExtensions e)
- parseRssItemExtensions :: ParseRssExtensions e => MonadThrow m => ConduitM Event o m (RssItemExtensions e)
Documentation
class ParseRssExtension a where Source #
Class of RSS extensions that can be parsed.
parseRssChannelExtension :: MonadThrow m => ConduitM Event o m (RssChannelExtension a) Source #
This parser will be fed with all Event
s within the <channel>
element.
Therefore, it is expected to ignore Event
s unrelated to the RSS extension.
parseRssItemExtension :: MonadThrow m => ConduitM Event o m (RssItemExtension a) Source #
type ParseRssExtensions e = (AllConstrained ParseRssExtension e, SingI e) Source #
Requirement on a list of extension tags to be able to parse and combine them.
parseRssChannelExtensions :: ParseRssExtensions e => MonadThrow m => ConduitM Event o m (RssChannelExtensions e) Source #
Parse a combination of RSS extensions at <channel>
level.
parseRssItemExtensions :: ParseRssExtensions e => MonadThrow m => ConduitM Event o m (RssItemExtensions e) Source #
Parse a combination of RSS extensions at <item>
level.