rss-conduit-0.2.0.1: Streaming parser/renderer for the RSS 2.0 standard.

Safe HaskellNone
LanguageHaskell2010

Text.RSS.Types

Description

RSS is an XML dialect for Web content syndication.

Example:

<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Liftoff News</title>
      <link>http://liftoff.msfc.nasa.gov/</link>
      <description>Liftoff to Space Exploration.</description>
      <language>en-us</language>
      <pubDate>Tue, 10 Jun 2003 04:00:00 GMT</pubDate>
      <lastBuildDate>Tue, 10 Jun 2003 09:41:01 GMT</lastBuildDate>
      <docs>http://blogs.law.harvard.edu/tech/rss</docs>
      <generator>Weblog Editor 2.0</generator>
      <managingEditor>editor@example.com</managingEditor>
      <webMaster>webmaster@example.com</webMaster>
      <item>
         <title>Star City</title>
         <link>http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp</link>
         <description>How do Americans get ready to work with Russians aboard the International Space Station? They take a crash course in culture, language and protocol at Russia's &lt;a href="http://howe.iki.rssi.ru/GCTC/gctc_e.htm"&gt;Star City&lt;/a&gt;.</description>
         <pubDate>Tue, 03 Jun 2003 09:39:21 GMT</pubDate>
         <guid>http://liftoff.msfc.nasa.gov/2003/06/03.html#item573</guid>
      </item>
   </channel>
</rss>

Synopsis

Documentation

data RssURI Source

Constructors

forall a . RssURI (URIRef a) 

withRssURI :: (forall a. URIRef a -> b) -> RssURI -> b Source

data RssSource Source

The <source> element.

Constructors

RssSource 

data RssGuid Source

The <guid> element.

Constructors

GuidText Text 
GuidUri RssURI 

newtype Hour Source

Constructors

Hour Int 

asHour :: MonadThrow m => Int -> m Hour Source

Smart constructor for Hour

asDay :: MonadThrow m => Text -> m Day Source

Basic parser for Day.