rss-3000.2.0.3: A library for generating RSS 2.0 feeds.

Portabilityportable
Stabilityexperimental
MaintainerBas van Dijk <v.dijk.bas@gmail.com>
Safe HaskellTrustworthy

Text.RSS

Description

A libary for generating RSS 2.0 feeds.

Original module by Jeremy Shaw.

Changes by Bjorn Bringert:

  • showXml just converts the RSS to a String, does not print it.
  • Added XML escaping.
  • Use RFC 2822 format for dates.
  • Added all elements from RSS 2.0.1-rv-6, http://www.rssboard.org/rss-2-0-1-rv-6
  • Use HaXml.Verbatim instead of HaXml.Pretty, since HaXml.Pretty seems to introduce spaces around entities.
  • Removed the use of content:encoded, since the description tag is the recommented way to include HTML content in RSS 2.0.

Changes by Bas van Dijk:

  • Use UTCTime from time instead of CalendarTime from old-time.
  • Add our own Weekday type instead of using the Day type from old-time.

Synopsis

Documentation

data RSS Source

Instances

rssToXML :: RSS -> CFilter ()Source

Converts RSS to XML.

showXML :: CFilter () -> StringSource

Render XML as a string.