atom-conduit-0.3.1.2: Streaming parser/renderer for the Atom 1.0 standard (RFC 4287).

Safe HaskellNone
LanguageHaskell2010

Text.Atom.Conduit.Parse

Contents

Description

Streaming parsers for the Atom 1.0 standard.

Synopsis

Top-level

atomFeed :: MonadCatch m => ConduitParser Event m AtomFeed Source #

Parse an atom:feed element.

Elements

atomEntry :: MonadCatch m => ConduitParser Event m AtomEntry Source #

Parse an atom:entry element.

atomContent :: MonadCatch m => ConduitParser Event m AtomContent Source #

Parse an atom:content element.

atomCategory :: MonadCatch m => ConduitParser Event m AtomCategory Source #

Parse an atom:category element. Example:

<category term="sports"/>

atomLink :: MonadCatch m => ConduitParser Event m AtomLink Source #

Parse an atom:link element. Examples:

<link rel="self" href="/feed" />
<link rel="alternate" href="/blog/1234"/>

atomGenerator :: MonadCatch m => ConduitParser Event m AtomGenerator Source #

Parse an atom:generator element. Example:

<generator uri="/myblog.php" version="1.0">
  Example Toolkit
</generator>

atomSource :: MonadCatch m => ConduitParser Event m AtomSource Source #

Parse an atom:source element. Example:

<source>
  <id>http://example.org/</id>
  <title>Fourty-Two</title>
  <updated>2003-12-13T18:30:02Z</updated>
  <rights>© 2005 Example, Inc.</rights>
</source>

Constructs

atomPerson :: MonadCatch m => Text -> ConduitParser Event m AtomPerson Source #

Parse an Atom person construct. Example:

<author>
  <name>John Doe</name>
  <email>JohnDoe@example.com</email>
  <uri>http://example.com/~johndoe</uri>
</author>

atomText :: MonadCatch m => Text -> ConduitParser Event m AtomText Source #

Parse an Atom text construct. Examples:

<title type="text">AT&amp;T bought by SBC!</title>
<title type="html">
  AT&amp;amp;T bought &lt;b&gt;by SBC&lt;/b&gt;!
</title>
<title type="xhtml">
  <div xmlns="http://www.w3.org/1999/xhtml">
    AT&amp;T bought <b>by SBC</b>!
  </div>
</title>