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

CopyrightCopyright 2004 Jeremy Shaw http://www.n-heptane.com/
Copyright 2004-2006 Bjorn Bringert (bjorn@bringert.net)
LicenseThis code is released to the public domain and comes with no warranty.
MaintainerBas van Dijk <v.dijk.bas@gmail.com>
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

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

Show RSS Source # 

Methods

showsPrec :: Int -> RSS -> ShowS #

show :: RSS -> String #

showList :: [RSS] -> ShowS #

type Link = URI Source #

type Width = Int Source #

data Weekday Source #

A day of the week.

type Hour = Int Source #

rssToXML :: RSS -> CFilter () Source #

Converts RSS to XML.

showXML :: CFilter () -> String Source #

Render XML as a string.