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

CopyrightCopyright 2004, Jeremy Shaw, Copyright 2004-2006, Bjorn Bringert (
LicenseThis code is released to the public domain and comes with no warranty.
MaintainerBas van Dijk <>
Safe HaskellTrustworthy



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,
  • 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.



data RSS Source


type Link = URI Source

type Hour = Int Source

rssToXML :: RSS -> CFilter () Source

Converts RSS to XML.

showXML :: CFilter () -> String Source

Render XML as a string.