Safe Haskell | None |
---|---|
Language | Haskell2010 |
Syndication module for RSS. Cf specification at http://web.resource.org/rss/1.0/modules/syndication/.
Synopsis
- data SyndicationModule :: *
- data family RssChannelExtension extensionTag :: *
- data family RssItemExtension extensionTag :: *
- data SyndicationInfo = SyndicationInfo {}
- mkSyndicationInfo :: SyndicationInfo
- data SyndicationPeriod
- asSyndicationPeriod :: MonadThrow m => Text -> m SyndicationPeriod
- syndicationInfo :: MonadThrow m => ConduitT Event o m SyndicationInfo
- syndicationPeriod :: MonadThrow m => ConduitT Event o m (Maybe SyndicationPeriod)
- syndicationFrequency :: MonadThrow m => ConduitT Event o m (Maybe Int)
- syndicationBase :: MonadThrow m => ConduitT Event o m (Maybe UTCTime)
- renderSyndicationInfo :: Monad m => SyndicationInfo -> ConduitT () Event m ()
- renderSyndicationPeriod :: Monad m => SyndicationPeriod -> ConduitT () Event m ()
- renderSyndicationFrequency :: Monad m => Int -> ConduitT () Event m ()
- renderSyndicationBase :: Monad m => UTCTime -> ConduitT () Event m ()
- namespacePrefix :: Text
- namespaceURI :: URIRef Absolute
Types
data SyndicationModule :: * Source #
Syndication tag type.
Instances
data family RssChannelExtension extensionTag :: * Source #
<channel>
extension type.
Instances
data family RssItemExtension extensionTag :: * Source #
<item>
extension type.
Instances
data SyndicationInfo Source #
Syndication extension model.
Instances
mkSyndicationInfo :: SyndicationInfo Source #
Construct an empty SyndicationInfo
.
data SyndicationPeriod Source #
Instances
asSyndicationPeriod :: MonadThrow m => Text -> m SyndicationPeriod Source #
Parsers
syndicationInfo :: MonadThrow m => ConduitT Event o m SyndicationInfo Source #
Parse all Syndication elements.
syndicationPeriod :: MonadThrow m => ConduitT Event o m (Maybe SyndicationPeriod) Source #
Parse a <sy:updatePeriod>
element.
syndicationFrequency :: MonadThrow m => ConduitT Event o m (Maybe Int) Source #
Parse a <sy:updateFrequency>
element.
syndicationBase :: MonadThrow m => ConduitT Event o m (Maybe UTCTime) Source #
Parse a <sy:updateBase>
element.
Renderers
renderSyndicationInfo :: Monad m => SyndicationInfo -> ConduitT () Event m () Source #
Render all Syndication elements.
renderSyndicationPeriod :: Monad m => SyndicationPeriod -> ConduitT () Event m () Source #
Render a <sy:updatePeriod>
element.
renderSyndicationFrequency :: Monad m => Int -> ConduitT () Event m () Source #
Render a <sy:updateFrequency>
element.
renderSyndicationBase :: Monad m => UTCTime -> ConduitT () Event m () Source #
Render a <sy:updateBase>
element.
Misc
namespacePrefix :: Text Source #
XML prefix is sy
.
namespaceURI :: URIRef Absolute Source #
XML namespace is http://purl.org/rss/1.0/modules/syndication/.