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

Portabilityportable
Stabilityexperimental
MaintainerBjorn Bringert <bjorn@bringert.net>

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.

Synopsis

Documentation

data RSS Source

Instances

rssToXML :: RSS -> CFilter ()Source

Converts RSS to XML.

showXML :: CFilter () -> StringSource

Render XML as a string.